Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/xmpp_muc.c @ 1938:26e437e79e60
Fix MUC whois / auto_whois
This patch should fix issue #68:
https://bitbucket.org/McKael/mcabber-crew/issue/68/
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 12 Feb 2011 19:00:59 +0100 |
parents | bfa507815e0c |
children | 1a01a7ef4e43 |
comparison
equal
deleted
inserted
replaced
1937:118524e9d7b6 | 1938:26e437e79e60 |
---|---|
615 if (autowhois == autowhois_default) | 615 if (autowhois == autowhois_default) |
616 autowhois = (settings_opt_get_int("muc_auto_whois") ? | 616 autowhois = (settings_opt_get_int("muc_auto_whois") ? |
617 autowhois_on : autowhois_off); | 617 autowhois_on : autowhois_off); |
618 | 618 |
619 if (new_member && autowhois == autowhois_on) { | 619 if (new_member && autowhois == autowhois_on) { |
620 // FIXME: This will fail for some UTF-8 nicknames. | 620 cmd_room_whois(room_elt->data, rname, FALSE); |
621 gchar *joiner_nick = from_utf8(rname); | |
622 cmd_room_whois(room_elt->data, joiner_nick, FALSE); | |
623 g_free(joiner_nick); | |
624 } | 621 } |
625 | 622 |
626 scr_draw_roster(); | 623 scr_draw_roster(); |
627 } | 624 } |
628 | 625 |