diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-16 21:02:39 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-16 21:02:39 +0000 |
commit | b7dd7d244bb66f194b812126ac88106e60fc798f (patch) | |
tree | 2bc6d5421aa2a62f1a5dd9ff892f4fb50f9243b0 /src/modules/m_opermodes.cpp | |
parent | 1635c37dadd8650a7d3ee27a0c003c4e30f1ec4e (diff) |
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
Diffstat (limited to 'src/modules/m_opermodes.cpp')
-rw-r--r-- | src/modules/m_opermodes.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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<std::string> 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]); } |