From 59ca4eec57a9c8b37e79e3031c74b59d4803fc28 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 4 Apr 2008 13:12:10 +0000 Subject: Make all our modules use the new stuff rather than the send_ events git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9301 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_opermodes.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/modules/m_opermodes.cpp') 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 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; } -- cgit v1.2.3