summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changes2
-rw-r--r--src/nickserv.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Changes b/Changes
index 4faa0a27b..b2dfdcd43 100644
--- a/Changes
+++ b/Changes
@@ -16,7 +16,7 @@ F Allow NS REGISTER to unregistered nicks, silly oversight. Thanks DP! :)
F Fix call order, thanks to DP
F Pass the right array to do_umode(), fixes mode tracking on Unreal. Thanks to DukePyrolator (yet again :P)
F Fix bs_set help, thanks to DukePyrolator! :)
-F Fix segfault, noted by DukePyrolator. Thanks!
+F Fix two segfaults, noted by DukePyrolator. Thanks!
F Fix part one of #1010, reported by DukePyrolator. (Language settings are not respected in message sending.) Thanks!
diff --git a/src/nickserv.c b/src/nickserv.c
index 92a91a6b3..e1fe3fae9 100644
--- a/src/nickserv.c
+++ b/src/nickserv.c
@@ -1115,6 +1115,7 @@ int delnick(NickAlias * na)
{
if (ircd->modeonunreg)
common_svsmode(finduser(na->nick), ircd->modeonunreg, "1");
+ u->nc = NULL;
}
delHostCore(na->nick); /* delete any vHost's for this nick */
@@ -1129,7 +1130,6 @@ int delnick(NickAlias * na)
if (!delcore(na->nc))
return 0;
na->nc = NULL;
- u->nc = NULL;
}
else
{