1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 13:43:12 +02:00

Fix /ns drop nick showing "your nick" and not the nick you specified if the nick isn't registered

This commit is contained in:
Adam
2013-03-02 18:52:15 -05:00
parent b9bbb3747b
commit 2d309da0f6
+4 -1
View File
@@ -34,7 +34,10 @@ class CommandNSDrop : public Command
NickAlias *na = NickAlias::Find(!nick.empty() ? nick : source.GetNick());
if (!na)
{
source.Reply(NICK_NOT_REGISTERED);
if (!nick.empty())
source.Reply(NICK_X_NOT_REGISTERED, nick.c_str());
else
source.Reply(NICK_NOT_REGISTERED);
return;
}