From 30935599479bd102db16842a8bc614d905a2ec60 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sun, 4 Aug 2013 19:13:52 +0200 Subject: Call ModeParser::Process() directly instead of going through the CommandParser Simplify the way how m_conn_umodes assembles the modes it sets --- src/users.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 649a325c9..371fa3bb6 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -486,7 +486,7 @@ void User::UnOper() parameters.push_back(this->nick); parameters.push_back(moderemove); - ServerInstance->Parser->CallHandler("MODE", parameters, this); + ServerInstance->Modes->Process(parameters, this); /* remove the user from the oper list. Will remove multiple entries as a safeguard against bug #404 */ ServerInstance->Users->all_opers.remove(this); -- cgit v1.3.1-10-gc9f91