From dc13e23883f2640de3335b679b38a8bf483b03a5 Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 31 Aug 2008 00:47:30 +0000 Subject: 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 --- src/modules/m_spanningtree/treesocket2.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'src') 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 modelist(params.begin(), params.end()); -- cgit v1.2.3