diff options
author | Adam <Adam@anope.org> | 2016-12-01 19:10:46 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-12-01 19:10:46 -0500 |
commit | 95cd7a6aee8edb833aff92207ebed67a06913550 (patch) | |
tree | 118f2645e6f581d585a2eee81094464140b985bf /modules/protocol/inspircd12.cpp | |
parent | 12515fd2c12de0c3e5e027630d276e92f3fc6613 (diff) |
inspircd12: fix mode handler to handle opers changing other users umodes correctly
Diffstat (limited to 'modules/protocol/inspircd12.cpp')
-rw-r--r-- | modules/protocol/inspircd12.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/protocol/inspircd12.cpp b/modules/protocol/inspircd12.cpp index b8d846d5f..9701b079f 100644 --- a/modules/protocol/inspircd12.cpp +++ b/modules/protocol/inspircd12.cpp @@ -1147,12 +1147,7 @@ struct IRCDMessageMode : IRCDMessage users modes, we have to kludge this as it slightly breaks RFC1459 */ - User *u = source.GetUser(); - // This can happen with server-origin modes. - if (!u) - u = User::Find(params[0]); - // if it's still null, drop it like fire. - // most likely situation was that server introduced a nick which we subsequently akilled + User *u = User::Find(params[0]); if (u) u->SetModesInternal(source, "%s", params[1].c_str()); } |