From dcc8063a2889f70eb08cea23d25132ffdfef8e34 Mon Sep 17 00:00:00 2001 From: danieldg Date: Tue, 2 Mar 2010 00:23:38 +0000 Subject: Log invalid S2S commands a bit better git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12579 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/treesocket2.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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); } -- cgit v1.2.3