diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-10-10 02:15:40 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-10-12 03:46:19 +0200 |
commit | 5961493368ec3c83b688afe6229d4efb1bb4d57a (patch) | |
tree | 2edc1a78daec376b04566372229bdcd11a834e16 /src/commands/cmd_privmsg.cpp | |
parent | ba6f7fe42f11374bde035edbc459853725f88737 (diff) |
Fix unregistered users getting global notices, also fix certain commands working on unregistered users, spotted by @Adam-
Diffstat (limited to 'src/commands/cmd_privmsg.cpp')
-rw-r--r-- | src/commands/cmd_privmsg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/cmd_privmsg.cpp b/src/commands/cmd_privmsg.cpp index 5eac99dd5..cefdd4800 100644 --- a/src/commands/cmd_privmsg.cpp +++ b/src/commands/cmd_privmsg.cpp @@ -192,7 +192,7 @@ CmdResult CommandPrivmsg::Handle (const std::vector<std::string>& parameters, Us else dest = ServerInstance->FindNick(destnick); - if (dest) + if ((dest) && (dest->registered == REG_ALL)) { if (parameters[1].empty()) { |