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