summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsjaz <sjaz@5417fbe8-f217-4b02-8779-1006273d7864>2009-06-20 22:26:30 +0000
committersjaz <sjaz@5417fbe8-f217-4b02-8779-1006273d7864>2009-06-20 22:26:30 +0000
commit9eea1444fa3f36dedf749ae87fb1c4be539eadb3 (patch)
tree16ced7b781d3cd3c53de6f63fdfce82ecc55d9a6
parent1ee6c20e1e57c2b0e824b02ebdf773c278217d6c (diff)
Fixes issue with /NS CONFIRM with non-registered nicks. (Thanks Adam)
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2330 5417fbe8-f217-4b02-8779-1006273d7864
-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 */