Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/jabglue.c @ 507:16dd9b91702f
MUC: display buddy's departure message, if any
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 12 Nov 2005 11:33:14 +0100 |
parents | dba5de0b89bc |
children | d40c434fff46 |
comparison
equal
deleted
inserted
replaced
506:74dcd0df532e | 507:16dd9b91702f |
---|---|
1180 } | 1180 } |
1181 } | 1181 } |
1182 | 1182 |
1183 // Check for departure/arrival | 1183 // Check for departure/arrival |
1184 if (!mbnewnick && mbrole == role_none) { | 1184 if (!mbnewnick && mbrole == role_none) { |
1185 gchar *mbuf = g_strdup_printf("%s has left", rname); | 1185 gchar *mbuf; |
1186 if (s) mbuf = g_strdup_printf("%s has left: %s", rname, s); | |
1187 else mbuf = g_strdup_printf("%s has left", rname); | |
1186 scr_WriteIncomingMessage(r, mbuf, 0, HBB_PREFIX_INFO); | 1188 scr_WriteIncomingMessage(r, mbuf, 0, HBB_PREFIX_INFO); |
1187 if (log_muc_conf) hlog_write_message(r, 0, FALSE, mbuf); | 1189 if (log_muc_conf) hlog_write_message(r, 0, FALSE, mbuf); |
1188 g_free(mbuf); | 1190 g_free(mbuf); |
1189 } else if (buddy_getstatus(room_elt->data, rname) == offline && | 1191 } else if (buddy_getstatus(room_elt->data, rname) == offline && |
1190 ust != offline) { | 1192 ust != offline) { |