1
0
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:
Adam
2010-07-27 22:12:20 -04:00
parent 4b870cc5f9
commit a2573a2c30
33 changed files with 66 additions and 34 deletions
+2 -1
View File
@@ -22,7 +22,8 @@ class CommandNSSetMisc : public Command
CommandReturn RealExecute(User *u, const std::vector<Anope::string> &params)
{
NickCore *nc = findcore(params[0]);
assert(nc);
if (!nc)
throw CoreException("NULL nc in CommandNSSetMisc");
nc->Shrink("nickserv:" + this->name);
if (params.size() > 1)