diff options
author | Adam <Adam@anope.org> | 2010-07-27 22:12:20 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-07-27 22:12:20 -0400 |
commit | a2573a2c3067343ebf46292691671ba4bad855a8 (patch) | |
tree | 3249b34cdc55997ec9443e4792a8122dedc70f74 /modules/core/cs_set_mlock.cpp | |
parent | 4b870cc5f9671201dfad6fa836847cdd40aef519 (diff) |
Removed some assertions, replaced with throwing CoreExceptions
Diffstat (limited to 'modules/core/cs_set_mlock.cpp')
-rw-r--r-- | modules/core/cs_set_mlock.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/core/cs_set_mlock.cpp b/modules/core/cs_set_mlock.cpp index 166f6f71c..ec41913b9 100644 --- a/modules/core/cs_set_mlock.cpp +++ b/modules/core/cs_set_mlock.cpp @@ -23,7 +23,8 @@ class CommandCSSetMLock : public Command CommandReturn Execute(User *u, const std::vector<Anope::string> ¶ms) { ChannelInfo *ci = cs_findchan(params[0]); - assert(ci); + if (!ci) + throw CoreException("NULL ci in CommandCSSetMLock"); int add = -1; /* 1 if adding, 0 if deleting, -1 if neither */ ChannelMode *cm; |