summaryrefslogtreecommitdiff
path: root/src/modules/m_opermodes.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-03-07 01:29:45 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-03-07 01:29:45 +0000
commit96a4a1d41e42dba806c2e9954e148ed838262511 (patch)
tree3d1b2679437012f10133182d0aa8a8d9b7479350 /src/modules/m_opermodes.cpp
parent526f5a4a02882b19056fe755dff1f64b764ff313 (diff)
Include explicit parameter list in ProtocolInterface::SendMode
Also leave the strings split into deque, there's no need to pack it into a string just to unpack it during the translate. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11181 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_opermodes.cpp')
-rw-r--r--src/modules/m_opermodes.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/m_opermodes.cpp b/src/modules/m_opermodes.cpp
index 2e947809a..f72f007c4 100644
--- a/src/modules/m_opermodes.cpp
+++ b/src/modules/m_opermodes.cpp
@@ -109,10 +109,14 @@ class ModuleModesOnOper : public Module
}
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);
+ ServerInstance->PI->SendMode(u->uuid, n, t);
ServerInstance->SendMode(modes, u);
}
};