libpurple for non-gui clients
Sadrul H Chowdhury
imadil at gmail.com
Thu Aug 9 15:51:24 EDT 2007
On 8/9/07, Kyryll A Mirnenko aka Mirya <mirya at zoc.com.ua> wrote:
> There's some sort of a problem using libpurple for non-ui clients: it
> a conversation for every little talk. If a non-ui client handles lots of
> users it becomes a hazard. I've tried to destroy the conversation after a
> message is sent _from_ my non-ui client, but that doesn't work for
> messages: I can't destroy the conversation itself in the write_conv()
> callback (it results in the application crash). Or other hand, may
> allow talking without such an entity, e.g. in style
You can listen to "receiving-im-msg" signal, process the message and return
non-zero from the callback. That will stop libpurple from creating the
conversation in the first place, I believe.
Out of curiosity, what sort of protocol are you using purple for? And what
really do you mean by "hazard"?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Devel