summaryrefslogtreecommitdiff
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
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
-rw-r--r--docs/inspircd.conf.example2
-rw-r--r--src/modules/m_spanningtree/treesocket2.cpp5
2 files changed, 6 insertions, 1 deletions
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.
-<log method="file" type="* -USERINPUT -USEROUTPUT -m_spanningtree" level="default" target="ircd.log">
+<log method="file" type="* -USERINPUT -USEROUTPUT" level="default" target="ircd.log">
#-#-#-#-#-#-#-#-#-#-#-#-#- 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);
}