mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
Fix the nicklock module sending a notice instead of ERR_NOSUCHNICK.
This commit is contained in:
parent
5df3368991
commit
8caff612fb
@ -53,7 +53,7 @@ class CommandNicklock : public Command
|
||||
|
||||
if ((!target) || (target->registered != REG_ALL))
|
||||
{
|
||||
user->WriteNotice("*** No such nickname: '" + parameters[0] + "'");
|
||||
user->WriteNumeric(Numerics::NoSuchNick(parameters[0]));
|
||||
return CMD_FAILURE;
|
||||
}
|
||||
|
||||
@ -113,7 +113,7 @@ class CommandNickunlock : public Command
|
||||
|
||||
if (!target)
|
||||
{
|
||||
user->WriteNotice("*** No such nickname: '" + parameters[0] + "'");
|
||||
user->WriteNumeric(Numerics::NoSuchNick(parameters[0]));
|
||||
return CMD_FAILURE;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user