libpurple: is there a signal for remote buddy add - ie corresponding to purple_account_request_authorization?

Kieran Elby kieran.elby at
Mon Nov 5 05:31:32 EST 2007

Hello Pidgin people,

Not sure if this is a support question or a development question, but 
here goes...

Is there a libpurple signal I can use to see when someone adds me to 
their buddy list? I can see there is a UI op for this, 
purple_account_request_authorization, but I was hoping to catch it from 
a Tcl plugin.

If not, could a signal be added for that? I _might_ have a go at doing 
it myself.

Incidentally, in case you're interested in why I'd want to do that - 
here's what I'm actually working on (feel free to skip this bit, though 
I'd be interested in any suggestions for the best way to acheive it):

Problem: I tend to revise for my studies for long periods pretty 
infrequently (e.g. twice a week). I think I'd be more productive if I 
revised a few questions every 30 mins or so, even when I'm at work. 
Hopefully other people might be interested in using it too.

Solution: Develop a messenger "bot" which, if I add it as a buddy, asks 
me questions via instant messenging. I should be able to control it by 
saying "stop / start / later" to it. A bit like one of those IRC trivia 
bots really, but not for a whole chatroom.

Approach: I'm inclined to make the bot a Tcl plugin since I know Tcl 
well and can develop in it a lot faster than in C (and I've not used 
GLib at all). I suspect I can probably just run a slightly hacked 
version of the example/nullclient.c app to load libpurple and my plugin 
since I don't care about having any kind of GUI for the bot.

Kieran Elby

More information about the Support mailing list