comparison libpurple/protocols/yahoo/yahoo.c @ 29259:d855ff9cf839

propagate from branch 'im.pidgin.pidgin' (head 311b4db51b575e1baa7f78d751ff926475edecc3) to branch 'im.pidgin.cpw.attention_ui' (head 97b1a4ad4476369802e26e6ddf7aec5a5e46dc00)
author Marcus Lundblad <ml@update.uu.se>
date Thu, 13 Nov 2008 19:49:58 +0000
parents 9e0458c98b4c 602f3b6ddbbf
children a0fd6a41d127
comparison
equal deleted inserted replaced
24404:f18f37a62971 29259:d855ff9cf839
876 if (c == NULL) 876 if (c == NULL)
877 c = purple_conversation_new(PURPLE_CONV_TYPE_IM, account, im->from); 877 c = purple_conversation_new(PURPLE_CONV_TYPE_IM, account, im->from);
878 878
879 username = g_markup_escape_text(im->from, -1); 879 username = g_markup_escape_text(im->from, -1);
880 purple_prpl_got_attention(gc, username, YAHOO_BUZZ); 880 purple_prpl_got_attention(gc, username, YAHOO_BUZZ);
881 purple_conversation_attention(c, username, 0, PURPLE_MESSAGE_RECV,
882 time(NULL));
881 g_free(username); 883 g_free(username);
882 g_free(m); 884 g_free(m);
883 g_free(im); 885 g_free(im);
884 continue; 886 continue;
885 } 887 }
4133 4135
4134 if (*args && args[0]) 4136 if (*args && args[0])
4135 return PURPLE_CMD_RET_FAILED; 4137 return PURPLE_CMD_RET_FAILED;
4136 4138
4137 purple_prpl_send_attention(account->gc, c->name, YAHOO_BUZZ); 4139 purple_prpl_send_attention(account->gc, c->name, YAHOO_BUZZ);
4140 purple_conversation_attention(c, c->name, 0, PURPLE_MESSAGE_SEND, time(NULL));
4138 4141
4139 return PURPLE_CMD_RET_OK; 4142 return PURPLE_CMD_RET_OK;
4140 } 4143 }
4141 4144
4142 static PurplePlugin *my_protocol = NULL; 4145 static PurplePlugin *my_protocol = NULL;