diff options
| author | 2014-04-16 13:08:44 +0200 | |
|---|---|---|
| committer | 2014-04-16 13:08:44 +0200 | |
| commit | 3eb205218a321e454d873ae14e2e717ce9d64142 (patch) | |
| tree | 4f0c4aabf7fe7c51b329e09b59984977869fd786 /src/modules/m_spanningtree/nick.cpp | |
| parent | Remove WALLCHOPS and WALLVOICES ISUPPORT tokens (diff) | |
| download | inspircd++-3eb205218a321e454d873ae14e2e717ce9d64142.tar.gz inspircd++-3eb205218a321e454d873ae14e2e717ce9d64142.tar.bz2 inspircd++-3eb205218a321e454d873ae14e2e717ce9d64142.zip | |
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/nick.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/nick.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/nick.cpp b/src/modules/m_spanningtree/nick.cpp index 49ce9a767..733901632 100644 --- a/src/modules/m_spanningtree/nick.cpp +++ b/src/modules/m_spanningtree/nick.cpp @@ -33,7 +33,7 @@ CmdResult CommandNick::HandleRemote(RemoteUser* user, std::vector<std::string>& params) { if ((isdigit(params[0][0])) && (params[0] != user->uuid)) - return CMD_INVALID; + throw ProtocolException("Attempted to change nick to an invalid or non-matching UUID"); /* Update timestamp on user when they change nicks */ const time_t newts = ConvToInt(params[1]); |
