diff options
author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-12-17 19:22:00 +0000 |
---|---|---|
committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-12-17 19:22:00 +0000 |
commit | 6e53f2c591ada9eecefed4ab4825909b49802d26 (patch) | |
tree | b968880f38d24182bcb4175873284f6094d079e0 | |
parent | 5b18e7144d43607ce3d02361b4cdcef993a04ecb (diff) |
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
-rw-r--r-- | src/core/ns_ghost.c | 12 |
1 files 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 { |