summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/ns_register.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ns_register.c b/src/core/ns_register.c
index a9788853c..a75520cdb 100644
--- a/src/core/ns_register.c
+++ b/src/core/ns_register.c
@@ -124,7 +124,7 @@ class CommandNSConfirm : public Command
if (!nr)
{
- if (u->nc->IsServicesOper())
+ if (u->nc && u->nc->IsServicesOper())
{
/* If an admin, their nick is obviously already regged, so look at the passcode to get the nick
of the user they are trying to validate, and push that user through regardless of passcode */