summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree/treesocket2.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp
index e7c3d57fa..7fda68a0b 100644
--- a/src/modules/m_spanningtree/treesocket2.cpp
+++ b/src/modules/m_spanningtree/treesocket2.cpp
@@ -426,7 +426,12 @@ void TreeSocket::ProcessConnectedLine(std::string& prefix, std::string& command,
}
if (res == CMD_INVALID)
+ {
+ irc::stringjoiner pmlist(" ", params, 0, params.size() - 1);
+ ServerInstance->Logs->Log("spanningtree", SPARSE, "Invalid S2S command :%s %s %s",
+ who->uuid, command.c_str(), pmlist.GetJoined().c_str());
SendError("Unrecognised or malformed command '" + command + "' -- possibly loaded mismatched modules");
+ }
if (res == CMD_SUCCESS)
Utils->RouteCommand(route_back_again, command, params, who);
}