Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/jabglue.c @ 624:4e882a19077d
Fix double UTF-8 decoding
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 17 Dec 2005 13:48:07 +0100 |
parents | d3a8b43bf9e7 |
children | 028c01940490 |
comparison
equal
deleted
inserted
replaced
623:7d9841ea20d8 | 624:4e882a19077d |
---|---|
1049 // Natural leave | 1049 // Natural leave |
1050 if (we_left) { | 1050 if (we_left) { |
1051 xmlnode destroynode = xmlnode_get_tag(xmldata, "destroy"); | 1051 xmlnode destroynode = xmlnode_get_tag(xmldata, "destroy"); |
1052 if (destroynode) { | 1052 if (destroynode) { |
1053 gchar *rsn_noutf8 = NULL; | 1053 gchar *rsn_noutf8 = NULL; |
1054 reason = from_utf8(xmlnode_get_tag_data(destroynode, "reason")); | 1054 if ((reason = xmlnode_get_tag_data(destroynode, "reason"))) |
1055 if (reason) | |
1056 rsn_noutf8 = from_utf8(reason); | 1055 rsn_noutf8 = from_utf8(reason); |
1057 if (rsn_noutf8) { | 1056 if (rsn_noutf8) { |
1058 mbuf = g_strdup_printf("You have left %s, " | 1057 mbuf = g_strdup_printf("You have left %s, " |
1059 "the room has been destroyed: %s", | 1058 "the room has been destroyed: %s", |
1060 roomjid, rsn_noutf8); | 1059 roomjid, rsn_noutf8); |