summaryrefslogtreecommitdiff
path: root/src/modules/m_opermodes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_opermodes.cpp')
-rw-r--r--src/modules/m_opermodes.cpp10
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());
}
};