From 6e53f2c591ada9eecefed4ab4825909b49802d26 Mon Sep 17 00:00:00 2001 From: rburchell Date: Wed, 17 Dec 2008 19:22:00 +0000 Subject: [PATCH] Forward-port f9f00043eda253ab2aa97fff029befa072074b2a from 1.8: don't decrement session count twice on NS GHOST git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1828 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/ns_ghost.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/core/ns_ghost.c b/src/core/ns_ghost.c index 44218839c..fee8e5834 100644 --- a/src/core/ns_ghost.c +++ b/src/core/ns_ghost.c @@ -75,11 +75,7 @@ int do_ghost(User * u) int res = enc_check_password(pass, na->nc->pass); if (res == 1) { char buf[NICKMAX + 32]; - snprintf(buf, sizeof(buf), "GHOST command used by %s", - u->nick); - if (LimitSessions) { - del_session(u2->host); - } + snprintf(buf, sizeof(buf), "GHOST command used by %s", u->nick); kill_user(s_NickServ, nick, buf); notice_lang(s_NickServ, u, NICK_GHOST_KILLED, nick); } else { @@ -94,11 +90,7 @@ int do_ghost(User * u) if (group_identified(u, na->nc) || (!(na->nc->flags & NI_SECURE) && is_on_access(u, na->nc))) { char buf[NICKMAX + 32]; - snprintf(buf, sizeof(buf), "GHOST command used by %s", - u->nick); - if (LimitSessions) { - del_session(u2->host); - } + snprintf(buf, sizeof(buf), "GHOST command used by %s", u->nick); kill_user(s_NickServ, nick, buf); notice_lang(s_NickServ, u, NICK_GHOST_KILLED, nick); } else {