diff options
author | lethality <lethality@anope.org> | 2011-07-29 22:50:45 +0100 |
---|---|---|
committer | lethality <lethality@anope.org> | 2011-07-29 22:50:45 +0100 |
commit | f29c88bcd535e6dcf3bbf453423bca4b697a60fc (patch) | |
tree | e59bc51aa6063c8a6164a090f75820f684632ee7 | |
parent | f5e78d7c88462c4fcb0e190d34b5200a4c63c184 (diff) |
Fixed bug #1294, Crash on NS SET HIDE
-rw-r--r-- | modules/core/ns_set_hide.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/core/ns_set_hide.cpp b/modules/core/ns_set_hide.cpp index e1a9ecb4e..de3a96a1a 100644 --- a/modules/core/ns_set_hide.cpp +++ b/modules/core/ns_set_hide.cpp @@ -25,7 +25,7 @@ class CommandNSSetHide : public Command void Run(CommandSource &source, const Anope::string &user, const Anope::string ¶m, const Anope::string &arg) { NickAlias *na = findnick(user); - if (user == NULL) + if (!na) { source.Reply(NICK_X_NOT_REGISTERED, user.c_str()); return; |