1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 23:16:39 +02:00

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
This commit is contained in:
rburchell
2008-12-17 19:22:00 +00:00
parent 5b18e7144d
commit 6e53f2c591
+2 -10
View File
@@ -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 {