summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/fjoin.cpp
diff options
context:
space:
mode:
authorRobin Burchell <robin+git@viroteck.net>2012-04-18 16:06:58 +0200
committerRobin Burchell <robin+git@viroteck.net>2012-04-18 16:08:40 +0200
commit20eaf1a276fcf4dab6c144ed9486d7def01217fd (patch)
tree8e03c931b9b88734feff0f748ab3c9230bce579e /src/modules/m_spanningtree/fjoin.cpp
parent75690cc7eb2fb8d68e2bc50caf2cac8b98cb5446 (diff)
Log mode errors when processing FJOIN.
Diffstat (limited to 'src/modules/m_spanningtree/fjoin.cpp')
-rw-r--r--src/modules/m_spanningtree/fjoin.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree/fjoin.cpp b/src/modules/m_spanningtree/fjoin.cpp
index 8846b2fbc..7b4fa06bd 100644
--- a/src/modules/m_spanningtree/fjoin.cpp
+++ b/src/modules/m_spanningtree/fjoin.cpp
@@ -134,11 +134,13 @@ CmdResult CommandFJoin::Handle(const std::vector<std::string>& params, User *src
while ((*unparsedmodes) && (*unparsedmodes != ','))
{
ModeHandler *mh = ServerInstance->Modes->FindMode(*unparsedmodes, MODETYPE_CHANNEL);
- if (mh)
- modes += *unparsedmodes;
- else
+ if (!mh)
+ {
+ ServerInstance->Logs->Log("m_spanningtree", SPARSE, "Unrecognised mode %c, dropping link", *unparsedmodes);
return CMD_INVALID;
+ }
+ modes += *unparsedmodes;
usr++;
unparsedmodes++;
}