From a2573a2c3067343ebf46292691671ba4bad855a8 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 27 Jul 2010 22:12:20 -0400 Subject: Removed some assertions, replaced with throwing CoreExceptions --- modules/extra/cs_set_misc.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/extra/cs_set_misc.cpp') diff --git a/modules/extra/cs_set_misc.cpp b/modules/extra/cs_set_misc.cpp index 7cffe6866..d287a24c1 100644 --- a/modules/extra/cs_set_misc.cpp +++ b/modules/extra/cs_set_misc.cpp @@ -23,7 +23,8 @@ class CommandCSSetMisc : public Command CommandReturn Execute(User *u, const std::vector ¶ms) { ChannelInfo *ci = cs_findchan(params[0]); - assert(ci); + if (!ci) + throw CoreException("NULL ci in CommandCSSetMisc"); ci->Shrink("chanserv:" + this->name); if (params.size() > 1) -- cgit