diff options
author | berkeviktor@aol.com <berkeviktor@aol.com> | 2011-05-30 20:27:08 +0200 |
---|---|---|
committer | berkeviktor@aol.com <berkeviktor@aol.com> | 2011-05-30 20:27:08 +0200 |
commit | ff41e953ccd3e8783c9653b0bb901d290bbd1a78 (patch) | |
tree | 60bc595e66f32f38625fb0c3edbe25ee49751639 /src/common/inbound.c | |
parent | ad0067c162e2425a164854e4563a544d4a50d9f5 (diff) |
update xchat to r1496
Diffstat (limited to 'src/common/inbound.c')
-rw-r--r-- | src/common/inbound.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/inbound.c b/src/common/inbound.c index ec7dd9d0..41f5cff3 100644 --- a/src/common/inbound.c +++ b/src/common/inbound.c @@ -744,6 +744,7 @@ inbound_quit (server *serv, char *nick, char *ip, char *reason) { GSList *list = sess_list; session *sess; + struct User *user; int was_on_front_session = FALSE; while (list) @@ -753,9 +754,10 @@ inbound_quit (server *serv, char *nick, char *ip, char *reason) { if (sess == current_sess) was_on_front_session = TRUE; - if (userlist_remove (sess, nick)) + if (user = userlist_find (sess, nick)) { EMIT_SIGNAL (XP_TE_QUIT, sess, nick, reason, ip, NULL, 0); + userlist_remove_user (sess, user); } else if (sess->type == SESS_DIALOG && !serv->p_cmp (sess->channel, nick)) { EMIT_SIGNAL (XP_TE_QUIT, sess, nick, reason, ip, NULL, 0); |