[prev in list] [next in list] [prev in thread] [next in thread]
List: pidgin-devel
Subject: cant get purple_conv_im_send to work
From: "Dipankar Sarkar" <dipankarsarkar () gmail ! com>
Date: 2008-03-25 21:38:51
Message-ID: fba6384d0803251426h4e39b5ccnc8d162b3817c3b67 () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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
[Attachment #5 (text/html)]
Hi pidgin-devs<br><br>I picked up nullclient.c from the example and wanted to build a \
simple reply bot, i changed the following <br><br>/*** Conversation uiops \
***/<br>static void<br>null_write_conv(PurpleConversation *conv, const char *who, \
const char *alias,<br> \
\
const char *message, PurpleMessageFlags flags, time_t \
mtime)<br>{<br> const char \
*name;<br> if (alias && \
*alias)<br> \
name = alias;<br> else if (who && \
*who)<br> \
name = who;<br> \
else<br> \
name = NULL;<br><br> printf("(%s) %s \
%s: %s\n", purple_conversation_get_name(conv),<br> & \
nbsp; \
purple_utf8_strftime("(%H:%M:%S)", localtime(&mtime)),<br> \
\
name, message);<br> \
purple_conv_im_send(PURPLE_CONV_IM(conv),"Hi"); // Added this \
line<br>}<br><br>-------------<br><br>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. <br> Can someone point to some documentation that can explain what is \
happening .... i really wanna understand this better<br><br>(It has happened across \
all the versions of libpurple i tried, from 2.2.1 to 2.3.1)<br><br>Cheers,<br> \
Dipankar Sarkar<br><a href="http://dipankar.name">http://dipankar.name</a><br>
_______________________________________________
Devel mailing list
Devel@pidgin.im
http://pidgin.im/cgi-bin/mailman/listinfo/devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic