From ba2d1219507a9e950777ff4c7bd099b09bdfdece Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 29 Dec 2006 11:01:05 +0000 Subject: Fix desync (modes not being pushed to remote servers with send_mode event) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6157 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_opermodes.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/m_opermodes.cpp b/src/modules/m_opermodes.cpp index a0e762dbf..63a926407 100644 --- a/src/modules/m_opermodes.cpp +++ b/src/modules/m_opermodes.cpp @@ -97,7 +97,15 @@ class ModuleModesOnOper : public Module i++; } } - + std::deque n; + Event rmode((char *)&n, NULL, "send_mode"); + n.push_back(user->nick); + n.push_back(modes[0]); + for (unsigned int j = 1; j < tokens.size(); j++) + { + n.push_back(modes[j]); + } + rmode.Send(ServerInstance); ServerInstance->Log(DEBUG, "m_opermodes.so: new modes for %s: %s", modes[0], modes[1]); ServerInstance->SendMode(modes, size, user); } -- cgit v1.2.3