[OTR-users] autoreply messages not encrypted??
Ian Goldberg
ian at cypherpunks.ca
Fri Aug 4 11:26:16 EDT 2006
On Fri, Aug 04, 2006 at 09:23:23AM +0800, Weizhe wrote:
> Hi
>
> Thanks for the prompt reply and help. So, in other words, are you saying
> that it's impossible to encrypt the autoreply message? Or do you mean that
> this can work if the autoreply plugin is modified?
It should be able to work if you modify the autoreply plugin.
> If it is the latter, what command actually does (1), and which does
> (2)? Or is there some document I can consult on my own, as I wouldn't
> want to trouble you unnecessarily.
I don't know that there's good documentation; I think one needs to
rummage through the source.
I'm pulling this from gaim's conversation.c file:
To just send a message:
serv_send_im(gc, gaim_conversation_get_name(conv), msg, 0);
If you want the plugins to get access to it before you send it:
gaim_signal_emit(gaim_conversations_get_handle(), "sending-im-msg",
gaim_conversation_get_account(conv),
gaim_conversation_get_name(conv), &msg);
if (msg && msg[0]) {
serv_send_im(gc, gaim_conversation_get_name(conv), msg, 0);
}
I *think* that's right. Give it a try. :-)
- Ian
More information about the OTR-users
mailing list