From: Mike Campbell <mike.campbell@or...> - 2003-10-13 15:54:33
Thanks for the quick reply.
That page helps some but I'm still missing some stuff.
I can see that I need to use the signal "received-im-msg" to capture the
sender and the message. But am not sure how to set up the signal. I
tried the following and it did not complain but I had problems later as
well. Is this the correct way to tell the plugin to call the perl
subroutine parse_input whenever an IM msg is received?
$plugin, \&parse_input, "");
In the parse_input subroutine how do I get the sender and message?
Also I could not find a signal to write text back to the IM window. Is
there some other place that would be defined?
Technical Specialist Phone: 407.458.5688
Oracle Corporation Email: Mike.Campbell@...
GPG Fingerprint 6C34 6C22 4760 A01F 7C83 11CE C117 CDF1 8241 7C64
Luke Schierer wrote:
> Look at http://gaim.sourceforge.net/api/pages.html
> On Wed, Oct 01, 2003 at 08:34:28AM -0500, Mike Campbell wrote:
>>-----BEGIN PGP SIGNED MESSAGE-----
>>I'm trying to get a perl plugin working for the 0.70 win32 release. I
>>see that the API has changed but there is very little documentation on
>>how to re-write my perl script. The existing perl plugin demo files
>>still seem to use the old API.
>>All I need is a very basic plugin. I'd like to be able to do the
>>following when an IM message is received:
>>1 - capture the text that was sent to me into a perl variable
>>2 - allow me to massage the text
>>3 - send some text back to the IM window
>>In the old API I used the GAIM::print_to_conv function and
>>GAIM::add_event but these are probably not correct now.
>>What I would like is a simple example that I can follow to do the above.
>>If you can help I'd appreciate it.
>>Oracle Corporation Email: Mike.Campbell@...
>>GPG Fingerprint 6C34 6C22 4760 A01F 7C83 11CE C117 CDF1 8241 7C64
>>-----BEGIN PGP SIGNATURE-----
>>Version: GnuPG v1.2.3 (MingW32)
>>-----END PGP SIGNATURE-----