aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/metadata.cpp
diff options
context:
space:
mode:
authorGravatar Attila Molnar2014-04-16 13:08:44 +0200
committerGravatar Attila Molnar2014-04-16 13:08:44 +0200
commit3eb205218a321e454d873ae14e2e717ce9d64142 (patch)
tree4f0c4aabf7fe7c51b329e09b59984977869fd786 /src/modules/m_spanningtree/metadata.cpp
parentRemove WALLCHOPS and WALLVOICES ISUPPORT tokens (diff)
m_spanningtree Throw an exception on protocol violations instead of returning CMD_INVALID
Catch CoreExceptions, log and close the link in OnDataReady()
Diffstat (limited to 'src/modules/m_spanningtree/metadata.cpp')
-rw-r--r--src/modules/m_spanningtree/metadata.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/metadata.cpp b/src/modules/m_spanningtree/metadata.cpp
index 5dea7ffae..d151bc450 100644
--- a/src/modules/m_spanningtree/metadata.cpp
+++ b/src/modules/m_spanningtree/metadata.cpp
@@ -35,7 +35,7 @@ CmdResult CommandMetadata::Handle(User* srcuser, std::vector<std::string>& param
// Channel METADATA has an additional parameter: the channel TS
// :22D METADATA #channel 12345 extname :extdata
if (params.size() < 3)
- return CMD_INVALID;
+ throw ProtocolException("Insufficient parameters for channel METADATA");
Channel* c = ServerInstance->FindChan(params[0]);
if (!c)