summary refs log tree commit diff stats
path: root/src/common/inbound.c
diff options
context:
space:
mode:
authorberkeviktor@aol.com <berkeviktor@aol.com>2011-05-30 20:29:33 +0200
committerberkeviktor@aol.com <berkeviktor@aol.com>2011-05-30 20:29:33 +0200
commitbfb61201168844e8432b328332b431d8dbca2a2a (patch)
tree63a3b5106073a6884b49d8f20937a6b211349b29 /src/common/inbound.c
parent8c7d6502b99cfcfa034be2a9295eb7657f38dea1 (diff)
parentff41e953ccd3e8783c9653b0bb901d290bbd1a78 (diff)
Merge with default
Diffstat (limited to 'src/common/inbound.c')
-rw-r--r--src/common/inbound.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/inbound.c b/src/common/inbound.c
index 5cd888c9..3485dfd4 100644
--- a/src/common/inbound.c
+++ b/src/common/inbound.c
@@ -743,6 +743,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)
@@ -752,9 +753,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);