diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree/treesocket1.cpp | 2 | ||||
-rw-r--r-- | src/modules/rpc.h | 2 | ||||
-rw-r--r-- | src/users.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree/treesocket1.cpp b/src/modules/m_spanningtree/treesocket1.cpp index 6790fda83..2c8fc34a9 100644 --- a/src/modules/m_spanningtree/treesocket1.cpp +++ b/src/modules/m_spanningtree/treesocket1.cpp @@ -1071,7 +1071,7 @@ bool TreeSocket::ParseUID(const std::string &source, std::deque<std::string> &pa { _new = new userrec(this->Instance, params[0]); } - catch (CoreException &e) + catch (...) { SendError("Protocol violation - Duplicate UUID '" + params[0] + "' on introduction of new user"); return false; diff --git a/src/modules/rpc.h b/src/modules/rpc.h index cdaec4082..c9acc3b7d 100644 --- a/src/modules/rpc.h +++ b/src/modules/rpc.h @@ -238,7 +238,7 @@ class RPCValue : public classbase return it->second; } - std::pair<RPCObjectContainer::iterator,RPCObjectContainer::iterator> GetObjectIterator() throw() + std::pair<RPCObjectContainer::iterator,RPCObjectContainer::iterator> GetObjectIterator() { if (type != RPCObject) throw std::runtime_error("Cannot get iterator for a non-object RPC value"); diff --git a/src/users.cpp b/src/users.cpp index 5617715fd..b357fd149 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -878,7 +878,7 @@ void userrec::AddClient(InspIRCd* Instance, int socket, int port, bool iscached, { New = new userrec(Instance); } - catch (CoreException &e) + catch (...) { Instance->Log(DEFAULT,"*** WTF *** Duplicated UUID! -- Crack smoking monkies have been unleashed."); Instance->WriteOpers("*** WARNING *** Duplicate UUID allocated!"); |