cant get purple_conv_im_send to work
Dipankar Sarkar
dipankarsarkar at gmail.com
Tue Mar 25 17:26:51 EDT 2008
Hi pidgin-devs
I picked up nullclient.c from the example and wanted to build a simple reply
bot, i changed the following
/*** Conversation uiops ***/
static void
null_write_conv(PurpleConversation *conv, const char *who, const char
*alias,
const char *message, PurpleMessageFlags flags,
time_t mtime)
{
const char *name;
if (alias && *alias)
name = alias;
else if (who && *who)
name = who;
else
name = NULL;
printf("(%s) %s %s: %s\n", purple_conversation_get_name(conv),
purple_utf8_strftime("(%H:%M:%S)",
localtime(&mtime)),
name, message);
purple_conv_im_send(PURPLE_CONV_IM(conv),"Hi"); // Added this line
}
-------------
What happens is that the message starts to repeat itself and floods my user
(tested it on jabber), i have been unable to get it to work.
Can someone point to some documentation that can explain what is happening
.... i really wanna understand this better
(It has happened across all the versions of libpurple i tried, from 2.2.1 to
2.3.1)
Cheers,
Dipankar Sarkar
http://dipankar.name
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pidgin.im/pipermail/devel/attachments/20080326/fbe73c15/attachment.html>
More information about the Devel
mailing list