diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-08-31 00:47:30 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-08-31 00:47:30 +0000 |
commit | dc13e23883f2640de3335b679b38a8bf483b03a5 (patch) | |
tree | d7292548cc6b20f1ba7203731d0b3927f7419cad /src | |
parent | 5e2eaff8b76f4ecf395b78484fac6b93f1afefe7 (diff) |
Remove a redundant check, and fix user-mode change propegation. (closes bug #574)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10358 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree/treesocket2.cpp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp index f2679518e..dd55e3ee6 100644 --- a/src/modules/m_spanningtree/treesocket2.cpp +++ b/src/modules/m_spanningtree/treesocket2.cpp @@ -296,20 +296,6 @@ bool TreeSocket::ProcessLine(std::string &line) if (command == "SVSMODE") // This isn't in an "else if" so we still force FMODE for changes on channels. command = "MODE"; - if (command == "MODE") - { - if (params.size() >= 2) - { - Channel* channel = Instance->FindChan(params[0]); - if (channel) - { - this->SendError("MODE may no longer be used on channels. Please use FMODE, with correct timestamp rules."); - return false; - } - } - } - - /* * Now, check for (and parse) commands as appropriate. -- w */ @@ -525,7 +511,7 @@ bool TreeSocket::ProcessLine(std::string &line) { return this->Encap(prefix, params); } - else if (command == "MODE") + else if (command == "MODE" && !this->Instance->FindUUID(prefix)) // XXX we should check for no such serv? { // Server-prefix MODE. std::vector<std::string> modelist(params.begin(), params.end()); |