diff options
Diffstat (limited to 'src/modules/m_opermodes.cpp')
-rw-r--r-- | src/modules/m_opermodes.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/m_opermodes.cpp b/src/modules/m_opermodes.cpp index dfd55a970..877b9b441 100644 --- a/src/modules/m_opermodes.cpp +++ b/src/modules/m_opermodes.cpp @@ -112,11 +112,10 @@ class ModuleModesOnOper : public Module } std::deque<std::string> n; - Event rmode((char *)&n, NULL, "send_mode_explicit"); - for (unsigned int j = 0; j < tokens.size(); j++) + for (unsigned int j = 1; j < tokens.size(); j++) n.push_back(modes[j]); - rmode.Send(ServerInstance); + ServerInstance->PI->SendMode(u->uuid, n); ServerInstance->SendMode(modes, size, u); delete [] modes; } |