Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/jabglue.c @ 589:9942746e8d58
Improve fix from changeset 1b773c760a99
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 10 Dec 2005 20:17:49 +0100 |
parents | 1b773c760a99 |
children | a5707d61e469 |
comparison
equal
deleted
inserted
replaced
588:49f132b434a3 | 589:9942746e8d58 |
---|---|
935 if (how) { | 935 if (how) { |
936 gchar *mbuf_end; | 936 gchar *mbuf_end; |
937 // Forced leave | 937 // Forced leave |
938 if (actorjid) { | 938 if (actorjid) { |
939 gchar *rsn_noutf8 = from_utf8(reason); | 939 gchar *rsn_noutf8 = from_utf8(reason); |
940 if (!rsn_noutf8 && reason) | 940 if (!rsn_noutf8 && reason) { |
941 scr_LogPrint(LPRINT_LOGNORM, "UTF-8 decoding of reason has failed"); | 941 scr_LogPrint(LPRINT_NORMAL, "UTF-8 decoding of reason has failed"); |
942 scr_LogPrint(LPRINT_LOG, "UTF-8 decoding of reason has failed: %s", | |
943 reason); | |
944 } | |
942 mbuf_end = g_strdup_printf("%s from %s by <%s>.\nReason: %s", | 945 mbuf_end = g_strdup_printf("%s from %s by <%s>.\nReason: %s", |
943 (how == ban ? "banned" : "kicked"), | 946 (how == ban ? "banned" : "kicked"), |
944 roomjid, actorjid, | 947 roomjid, actorjid, |
945 (rsn_noutf8 ? rsn_noutf8 : "None given")); | 948 (rsn_noutf8 ? rsn_noutf8 : "None given")); |
946 if (rsn_noutf8) | 949 if (rsn_noutf8) |