From dcc8063a2889f70eb08cea23d25132ffdfef8e34 Mon Sep 17 00:00:00 2001 From: danieldg Date: Tue, 2 Mar 2010 00:23:38 +0000 Subject: [PATCH] Log invalid S2S commands a bit better git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12579 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/inspircd.conf.example | 2 +- src/modules/m_spanningtree/treesocket2.cpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/inspircd.conf.example b/docs/inspircd.conf.example index 09cd14779..1f31f6980 100644 --- a/docs/inspircd.conf.example +++ b/docs/inspircd.conf.example @@ -784,7 +784,7 @@ # The following log tag is highly default and uncustomised. It is recommended you # sort out your own log tags. This is just here so you get some output. - + #-#-#-#-#-#-#-#-#-#-#-#-#- WHOWAS OPTIONS -#-#-#-#-#-#-#-#-#-#-#-#-# # # 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); } -- 2.39.5