Skip to content
This repository was archived by the owner on Jun 6, 2021. It is now read-only.

Commit

Permalink
nickserv/sendpass{,user}: These modules conflict
Browse files Browse the repository at this point in the history
Make these modules conflict, as they both implement the SENDPASS command
for NickServ, and so loading both at the same time will cause Bad
Things.

Closes atheme#145
  • Loading branch information
dwfreed committed Apr 21, 2013
1 parent 2b937f3 commit 0a90a6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/nickserv/sendpass.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ command_t ns_sendpass = { "SENDPASS", N_("Email registration passwords."), PRIV_

void _modinit(module_t *m)
{
MODULE_CONFLICT(m, "nickserv/sendpass_user")
service_named_bind_command("nickserv", &ns_sendpass);
}

Expand Down
1 change: 1 addition & 0 deletions modules/nickserv/sendpass_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ command_t ns_sendpass = { "SENDPASS", N_("Email registration passwords."), AC_NO

void _modinit(module_t *m)
{
MODULE_CONFLICT(m, "nickserv/sendpass")
MODULE_TRY_REQUEST_DEPENDENCY(m, "nickserv/setpass");

service_named_bind_command("nickserv", &ns_sendpass);
Expand Down

0 comments on commit 0a90a6c

Please sign in to comment.