summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nickserv.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nickserv.c b/src/nickserv.c
index 89c1b8a77..27dfc31ef 100644
--- a/src/nickserv.c
+++ b/src/nickserv.c
@@ -4037,7 +4037,11 @@ static int do_ghost(User * u)
char buf[NICKMAX + 32];
snprintf(buf, sizeof(buf), "GHOST command used by %s",
u->nick);
- del_session(u2->host);
+#ifndef STREAMLINED
+ if (LimitSessions) {
+ del_session(u2->host);
+ }
+#endif
kill_user(s_NickServ, nick, buf);
notice_lang(s_NickServ, u, NICK_GHOST_KILLED, nick);
} else {