mirror of
https://github.com/anope/anope.git
synced 2026-06-28 11:26:37 +02:00
Fixed some permission checking fail in modules that got messed up from the big commands sed
This commit is contained in:
@@ -30,7 +30,7 @@ class CommandNSResetPass : public Command
|
||||
User *u = source.u;
|
||||
NickAlias *na;
|
||||
|
||||
if (Config->RestrictMail && (!u->Account() || !u->HasCommand("nickserv/nickserv/resetpass")))
|
||||
if (Config->RestrictMail && (!u->Account() || !u->HasCommand("nickserv/resetpass")))
|
||||
source.Reply(ACCESS_DENIED);
|
||||
else if (!(na = findnick(params[0])))
|
||||
source.Reply(NICK_X_NOT_REGISTERED, params[0].c_str());
|
||||
|
||||
Reference in New Issue
Block a user