summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_spanningtree/treesocket2.cpp5
1 files 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")
{