diff options
author | Adam <Adam@anope.org> | 2013-03-02 18:52:15 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-03-02 18:52:15 -0500 |
commit | 2d309da0f62724f8b775aacb9ab0e28d7977ccd2 (patch) | |
tree | 18494a54da1d7278f626715bc3893b4b9f9067ad | |
parent | b9bbb3747b75aef70436e45fb902cb4349ad72a1 (diff) |
Fix /ns drop nick showing "your nick" and not the nick you specified if the nick isn't registered
-rw-r--r-- | modules/commands/ns_drop.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/commands/ns_drop.cpp b/modules/commands/ns_drop.cpp index a94feefdb..e52ca5681 100644 --- a/modules/commands/ns_drop.cpp +++ b/modules/commands/ns_drop.cpp @@ -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; } |