Fwd: how to modify outgoing text.........

sanket agarwal snktagarwal at gmail.com
Mon Jan 5 22:29:54 EST 2009

---------- Forwarded message ----------
From: sanket agarwal <snktagarwal at gmail.com>
Date: Mon, Jan 5, 2009 at 11:23 PM
Subject: Re: how to modify outgoing text.........
To: arun kumar <arunkumar0107 at gmail.com>

First of all i am apprehensive you really want to change the source code. I
mean for your purpose a simple Libpurple plugin or a Dbus script will do the

Here's what you can easily do:

1. In the source code documentation of conv API there's a signal called
sending-im-message, sending-chat-message( which ever interface u r wanting
). Which is emitted just before u send a message is sent.

2. It has char **message as one of the arguments!!

3. Modify to whatever u like!

4. Write a plugin for it!


Sanket Agarwal

On Mon, Jan 5, 2009 at 10:40 PM, arun kumar <arunkumar0107 at gmail.com> wrote:

> hi all,
> i want to modify the  text typed by a user during a chat session
> before it reaches the desired receiver by modifying pidgin's source
> code. the main idea is i want the text typed by the sender to be
> translated to receiver's language assuming the sender and receiver
> chat in different languages.
> so where can i exactly access the outgoing text so that i can extract
> it , translate it and return it back to the pidgin to send it to the
> receiver.........
> anything would be appreciated......
> cheers,
> arun
> _______________________________________________
> Devel mailing list
> Devel at pidgin.im
> http://pidgin.im/cgi-bin/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pidgin.im/pipermail/devel/attachments/20090106/d3ebaef8/attachment-0001.html>

More information about the Devel mailing list