question about auto reply
Mark Doliner
mark at kingant.net
Mon Mar 29 03:04:28 EDT 2010
On Sun, Mar 28, 2010 at 11:51 PM, monnand <monnand.deng at gmail.com> wrote:
> monnand wrote:
>> Dear all,
>>
>> I'm writing a pidgin plugin, which implements something like an IM
>> robot. I use purple_conv_im_send_with_flags() to reply IM message.
>> However, no matter what flag I use in purple_conv_im_send_with_flags(),
>> the message sent by the bot will always be shown in the conversation window.
>>
>> My question is: Does there any method which could send a message without
>> notifying the UI part, so the message sent by robot could be invisible
>> to users.
>
> BTW, I have tried PURPLE_MESSAGE_INVISIBLE, however, a window will still
> be launched without showing the message. I would like to stop pidgin to
> open a new conversation window if a message was sent and no conversation
> window was started.
>
> Does there any method could finish this job?
It seems like it might be better if we didn't open an IM window in if
PURPLE_MESSAGE_INVISIBLE is set.
In any case, you should be able to call serv_send_im() directly. This
skips emitting the signals sending-im-msg and sent-im-msg, but I doubt
that'll cause any problems.
--Mark
More information about the Devel
mailing list