summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/treesocket2.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-03-02 00:23:38 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-03-02 00:23:38 +0000
commitdcc8063a2889f70eb08cea23d25132ffdfef8e34 (patch)
treeb872b63b7ac1685b5f43b9d908476cd2a757a7d1 /src/modules/m_spanningtree/treesocket2.cpp
parent2fe1992bc9a1243374ce4260e12b0cb5878de22f (diff)
Log invalid S2S commands a bit better
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12579 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree/treesocket2.cpp')
-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);
}