mirror of
https://github.com/anope/anope.git
synced 2026-07-04 19:33:12 +02:00
Removed some assertions, replaced with throwing CoreExceptions
This commit is contained in:
@@ -65,7 +65,8 @@ class CommandNSSASetSecure : 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 CommandNSSASetSecure");
|
||||
|
||||
Anope::string param = params[1];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user