diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-03-25 01:22:34 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-03-25 01:22:34 +0000 |
commit | f09f2e193039d64795f0c2fac6114dc109bd40ab (patch) | |
tree | b2c46c6304b9e9607d783e4dd6e95f3348bb9cf1 | |
parent | 3695657ae53dbf4a9ce97c5fd73f54881fcedd4f (diff) |
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
-rw-r--r-- | src/modules/m_opermodes.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
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<std::string> n; - std::deque<TranslateType> 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()); } }; |