mirror of
https://github.com/anope/anope.git
synced 2026-07-07 19:43:14 +02:00
Removed some assertions, replaced with throwing CoreExceptions
This commit is contained in:
@@ -22,7 +22,8 @@ class CommandNSSetMisc : public Command
|
||||
CommandReturn RealExecute(User *u, const std::vector<Anope::string> ¶ms)
|
||||
{
|
||||
NickCore *nc = findcore(params[0]);
|
||||
assert(nc);
|
||||
if (!nc)
|
||||
throw CoreException("NULL nc in CommandNSSetMisc");
|
||||
|
||||
nc->Shrink("nickserv:" + this->name);
|
||||
if (params.size() > 1)
|
||||
|
||||
Reference in New Issue
Block a user