summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-06-27 14:41:57 -0400
committerAdam <Adam@anope.org>2010-06-27 14:41:57 -0400
commit2979a0e9759eef695141386208a46342aaf23cdb (patch)
treedd6b27a4dc3681a5ed02a363615be5b46cb77be2 /src/core
parentde4f0cc28fa2ef2a3a570cffcfd81fcd3e786dfe (diff)
Log out users from their groups when they disconnect, keeps us from storing invalid pointers in the nickcore user list
Diffstat (limited to 'src/core')
-rw-r--r--src/core/ns_drop.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/ns_drop.c b/src/core/ns_drop.c
index a4ad89239..57247e577 100644
--- a/src/core/ns_drop.c
+++ b/src/core/ns_drop.c
@@ -89,10 +89,12 @@ class CommandNSDrop : public Command
notice_lang(Config.s_NickServ, u, NICK_X_DROPPED, nick);
else
notice_lang(Config.s_NickServ, u, NICK_DROPPED);
- if (my_nick)
- delete [] my_nick;
}
}
+
+ if (my_nick)
+ delete [] my_nick;
+
return MOD_CONT;
}