From 95cd7a6aee8edb833aff92207ebed67a06913550 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 1 Dec 2016 19:10:46 -0500 Subject: [PATCH] inspircd12: fix mode handler to handle opers changing other users umodes correctly --- modules/protocol/inspircd12.cpp | 7 +------ 1 file changed, 1 insertion(+), 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()); }