Mercurial > pidgin.yaz
comparison plugins/statenotify.c @ 10167:cf45c2a6a7cf
[gaim-migrate @ 11254]
Some stuff - fix a crash removing chats from the buddy list, escape aliases
in buddy pounce popups and the state notifications from the state notify
plugin, and fix a corner-case crash in smiley theme sorting.
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Wed, 10 Nov 2004 17:08:32 +0000 |
parents | f8e395a054e2 |
children | a66cf83552dc |
comparison
equal
deleted
inserted
replaced
10166:72c9e9bb2c19 | 10167:cf45c2a6a7cf |
---|---|
16 write_status(GaimBuddy *buddy, const char *message) | 16 write_status(GaimBuddy *buddy, const char *message) |
17 { | 17 { |
18 GaimConversation *conv; | 18 GaimConversation *conv; |
19 const char *who; | 19 const char *who; |
20 char buf[256]; | 20 char buf[256]; |
21 char *escaped; | |
21 | 22 |
22 conv = gaim_find_conversation_with_account(buddy->name, buddy->account); | 23 conv = gaim_find_conversation_with_account(buddy->name, buddy->account); |
23 | 24 |
24 if (conv == NULL) | 25 if (conv == NULL) |
25 return; | 26 return; |
26 | 27 |
27 who = gaim_buddy_get_alias(buddy); | 28 who = gaim_buddy_get_alias(buddy); |
29 escaped = g_markup_escape_text(who, -1); | |
28 | 30 |
29 g_snprintf(buf, sizeof(buf), message, who); | 31 g_snprintf(buf, sizeof(buf), message, escaped); |
32 g_free(escaped); | |
30 | 33 |
31 gaim_conversation_write(conv, NULL, buf, GAIM_MESSAGE_SYSTEM, time(NULL)); | 34 gaim_conversation_write(conv, NULL, buf, GAIM_MESSAGE_SYSTEM, time(NULL)); |
32 } | 35 } |
33 | 36 |
34 static void | 37 static void |