changeset 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 4da3c8618c24
children ea26d30449fd
files libpurple/server.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
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);
 }