Mercurial > pidgin.yaz
comparison libpurple/protocols/yahoo/yahoo.c @ 16998:8e7a4295ff85
Finish removal of yahoo system message escaping. I must have been
asleep earlier.
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Thu, 10 May 2007 01:45:10 +0000 |
parents | c258cc89d19f |
children | 6ec8bae7d98a e4ee1c5bd51e |
comparison
equal
deleted
inserted
replaced
16997:546cecfdcbb9 | 16998:8e7a4295ff85 |
---|---|
904 } | 904 } |
905 | 905 |
906 static void yahoo_process_sysmessage(PurpleConnection *gc, struct yahoo_packet *pkt) | 906 static void yahoo_process_sysmessage(PurpleConnection *gc, struct yahoo_packet *pkt) |
907 { | 907 { |
908 GSList *l = pkt->hash; | 908 GSList *l = pkt->hash; |
909 char *prim, *me = NULL, *msg = NULL, *escmsg = NULL; | 909 char *prim, *me = NULL, *msg = NULL; |
910 | 910 |
911 while (l) { | 911 while (l) { |
912 struct yahoo_pair *pair = l->data; | 912 struct yahoo_pair *pair = l->data; |
913 | 913 |
914 if (pair->key == 5) | 914 if (pair->key == 5) |
922 if (!msg || !g_utf8_validate(msg, -1, NULL)) | 922 if (!msg || !g_utf8_validate(msg, -1, NULL)) |
923 return; | 923 return; |
924 | 924 |
925 prim = g_strdup_printf(_("Yahoo! system message for %s:"), | 925 prim = g_strdup_printf(_("Yahoo! system message for %s:"), |
926 me?me:purple_connection_get_display_name(gc)); | 926 me?me:purple_connection_get_display_name(gc)); |
927 purple_notify_info(NULL, NULL, prim, escmsg); | 927 purple_notify_info(NULL, NULL, prim, msg); |
928 g_free(prim); | 928 g_free(prim); |
929 g_free(escmsg); | |
930 } | 929 } |
931 | 930 |
932 struct yahoo_add_request { | 931 struct yahoo_add_request { |
933 PurpleConnection *gc; | 932 PurpleConnection *gc; |
934 char *id; | 933 char *id; |