summaryrefslogtreecommitdiff
path: root/modules/core/ns_set_autoop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/ns_set_autoop.cpp')
-rw-r--r--modules/core/ns_set_autoop.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/core/ns_set_autoop.cpp b/modules/core/ns_set_autoop.cpp
index 2c8c8b1c4..da8b8ccb9 100644
--- a/modules/core/ns_set_autoop.cpp
+++ b/modules/core/ns_set_autoop.cpp
@@ -65,7 +65,8 @@ class CommandNSSASetAutoOp : public Command
CommandReturn Execute(User *u, const std::vector<Anope::string> &params)
{
NickCore *nc = findcore(params[0]);
- assert(nc);
+ if (!nc)
+ throw CoreException("NULL nc in CommandNSSASetAutoOp");
Anope::string param = params[1];