libpurple/protocols/yahoo/yahoo.c

branch
cpw.attention_ui
changeset 25937
0e25d1df776d
parent 24858
13177815fd88
parent 25932
8c579d02a976
child 25942
801d5db5f26b
equal deleted inserted replaced
25075:4dd1f66c7b84 25937:0e25d1df776d
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 }
4140 4142
4141 if (*args && args[0]) 4143 if (*args && args[0])
4142 return PURPLE_CMD_RET_FAILED; 4144 return PURPLE_CMD_RET_FAILED;
4143 4145
4144 purple_prpl_send_attention(account->gc, c->name, YAHOO_BUZZ); 4146 purple_prpl_send_attention(account->gc, c->name, YAHOO_BUZZ);
4147 purple_conversation_attention(c, c->name, 0, PURPLE_MESSAGE_SEND, time(NULL));
4145 4148
4146 return PURPLE_CMD_RET_OK; 4149 return PURPLE_CMD_RET_OK;
4147 } 4150 }
4148 4151
4149 static PurplePlugin *my_protocol = NULL; 4152 static PurplePlugin *my_protocol = NULL;

mercurial