summaryrefslogtreecommitdiff
path: root/modules/core/cs_set_founder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/cs_set_founder.cpp')
-rw-r--r--modules/core/cs_set_founder.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/core/cs_set_founder.cpp b/modules/core/cs_set_founder.cpp
index 3982764cc..4fb83a9ec 100644
--- a/modules/core/cs_set_founder.cpp
+++ b/modules/core/cs_set_founder.cpp
@@ -23,7 +23,8 @@ class CommandCSSetFounder : public Command
CommandReturn Execute(User *u, const std::vector<Anope::string> &params)
{
ChannelInfo *ci = cs_findchan(params[0]);
- assert(ci);
+ if (!ci)
+ throw CoreException("NULL ci in CommandCSSetFounder");
if (this->permission.empty() && (ci->HasFlag(CI_SECUREFOUNDER) ? !IsFounder(u, ci) : !check_access(u, ci, CA_FOUNDER)))
{