summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}