Mercurial > pidgin
diff libpurple/server.c @ 19510:b17bd24fca8d
Don't trigger 'receiving-' and 'received-' signals when sending attention request.
| author | Sadrul Habib Chowdhury <imadil@gmail.com> |
|---|---|
| date | Tue, 28 Aug 2007 08:53:48 +0000 |
| parents | 3f6f84d11ce2 |
| children | 44b4e8bd759b |
line wrap: on
line diff
--- a/libpurple/server.c Tue Aug 28 04:32:52 2007 +0000 +++ b/libpurple/server.c Tue Aug 28 08:53:48 2007 +0000 @@ -272,6 +272,7 @@ PurpleAttentionType *attn; PurpleMessageFlags flags; PurplePlugin *prpl; + PurpleConversation *conv; gboolean (*send_attention)(PurpleConnection *, const char *, guint); gchar *description; @@ -302,8 +303,8 @@ if (!send_attention(gc, who, type_code)) return; - /* TODO: icons, sound, shaking... same as serv_got_attention(). */ - serv_got_im(gc, who, description, flags, mtime); + conv = purple_conversation_new(PURPLE_CONV_TYPE_IM, gc->account, who); + purple_conv_im_write(PURPLE_CONV_IM(conv), NULL, description, flags, mtime); g_free(description); }
