From 06335d5a19e42b7b896d4b19a17bb758fb2cd76a Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 4 Apr 2008 16:05:46 +0000 Subject: Fix lost messages, thanks w00t and peavey git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9325 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/treesocket2.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp index 903186b31..4b4ba65f0 100644 --- a/src/modules/m_spanningtree/treesocket2.cpp +++ b/src/modules/m_spanningtree/treesocket2.cpp @@ -347,10 +347,9 @@ bool TreeSocket::ProcessLine(std::string &line) { return this->ForceJoin(prefix,params); } - else if (command == "NOTICE" || command == "PRIVMSG") + else if ((command == "NOTICE" || command == "PRIVMSG") && (Utils->IsServer(prefix))) { - if (Utils->IsServer(prefix)) - return this->ServerMessage(assign(command), prefix, params, sourceserv); + return this->ServerMessage(assign(command), prefix, params, sourceserv); } else if (command == "STATS") { -- cgit v1.2.3