mirror of
https://github.com/anope/anope.git
synced 2026-07-04 09:03:12 +02:00
Removed some assertions, replaced with throwing CoreExceptions
This commit is contained in:
@@ -23,7 +23,8 @@ class CommandCSSetSecureFounder : 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 CommandCSSetSecureFounder");
|
||||
|
||||
if (this->permission.empty() && ci->HasFlag(CI_SECUREFOUNDER) ? !IsFounder(u, ci) : !check_access(u, ci, CA_FOUNDER))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user