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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user