From f09f2e193039d64795f0c2fac6114dc109bd40ab Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 25 Mar 2009 01:22:34 +0000 Subject: Use LastParseParams in m_opermodes because mode paramaters like +s +* can be modified by the mode parser git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11258 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_opermodes.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/modules/m_opermodes.cpp') diff --git a/src/modules/m_opermodes.cpp b/src/modules/m_opermodes.cpp index ed5bde76d..33c8c54b0 100644 --- a/src/modules/m_opermodes.cpp +++ b/src/modules/m_opermodes.cpp @@ -108,16 +108,8 @@ class ModuleModesOnOper : public Module modes.push_back(tokens[k]); } - std::deque n; - std::deque t; - for (unsigned int j = 1; j < tokens.size(); j++) - { - n.push_back(modes[j]); - t.push_back(TR_TEXT); - } - - ServerInstance->PI->SendMode(u->uuid, n, t); ServerInstance->SendMode(modes, u); + ServerInstance->PI->SendMode(u->uuid, ServerInstance->Modes->GetLastParseParams(), ServerInstance->Modes->GetLastParseTranslate()); } }; -- cgit v1.2.3