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/modules/m_samode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_samode.cpp') diff --git a/src/modules/m_samode.cpp b/src/modules/m_samode.cpp index cd0417aba..a549f89a7 100644 --- a/src/modules/m_samode.cpp +++ b/src/modules/m_samode.cpp @@ -44,7 +44,7 @@ class CommandSamode : public Command return CMD_FAILURE; } this->active = true; - ServerInstance->Parser->CallHandler("MODE", parameters, user); + ServerInstance->Modes->Process(parameters, user); if (ServerInstance->Modes->GetLastParse().length()) ServerInstance->SNO->WriteGlobalSno('a', user->nick + " used SAMODE: " +ServerInstance->Modes->GetLastParse()); this->active = false; -- cgit v1.3.1-10-gc9f91