From b7dd7d244bb66f194b812126ac88106e60fc798f Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 16 May 2007 21:02:39 +0000 Subject: Add a notice on connection close stating server link uptime, and fix a bug in m_opermodes which meant that its modes werent being replicated across servers (it was sending a totally malformed MODE command with the nick in twice, and has been doing this presumably since early 1.1's) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7034 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_opermodes.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/modules/m_opermodes.cpp') diff --git a/src/modules/m_opermodes.cpp b/src/modules/m_opermodes.cpp index 57eb8ae23..43c271c3d 100644 --- a/src/modules/m_opermodes.cpp +++ b/src/modules/m_opermodes.cpp @@ -98,9 +98,7 @@ class ModuleModesOnOper : public Module } 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++) + for (unsigned int j = 0; j < tokens.size(); j++) { n.push_back(modes[j]); } -- cgit v1.3.1-10-gc9f91