summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-09-10 13:55:20 +0200
committerattilamolnar <attilamolnar@hush.com>2013-09-10 13:55:20 +0200
commit0a28c9dacb65ac46ee7dc3c6f42c81c0fc5b9de2 (patch)
treeb6c5225209a8e934b87b3e5edeb1f23d9f9ba0b0 /src/modules/m_spanningtree
parent2f753f7864bf847af26f7a1aedc727927c163738 (diff)
m_spanningtree Handle ERROR when fully connected
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r--src/modules/m_spanningtree/treesocket2.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp
index e3f355ac6..b66595bd1 100644
--- a/src/modules/m_spanningtree/treesocket2.cpp
+++ b/src/modules/m_spanningtree/treesocket2.cpp
@@ -314,6 +314,12 @@ void TreeSocket::ProcessConnectedLine(std::string& prefix, std::string& command,
cmd = ServerInstance->Parser->GetHandler(command);
if (!cmd)
{
+ if (command == "ERROR")
+ {
+ this->Error(params);
+ return;
+ }
+
irc::stringjoiner pmlist(params);
ServerInstance->Logs->Log(MODNAME, LOG_SPARSE, "Unrecognised S2S command :%s %s %s",
who->uuid.c_str(), command.c_str(), pmlist.GetJoined().c_str());