Finch plugin - send "Please authorize me!" message automatically!

View: New views
3 Messages — Rating Filter:   Alert me  

Finch plugin - send "Please authorize me!" message automatically!

by mowsen@googlemail.com :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Hi there,


i'm writing a little perl script for finch. I want it to send the
"Please authorize me!" messages automatically. I add a buddy like
this:

$buddy = Purple::BuddyList::Buddy::new($account, $bud, $bud);
Purple::BuddyList::add_buddy($buddy, undef, $proto, $proto);
Purple::Account::add_buddy($account, $buddy);

On MSN, there is this "Please authorize me!" dialog popping up, which
I don't want. I want finch/the script to automatically send the
authorization message without first opening that dialog window at all.
I searched through the Perl API but couldn't find any appropriate
function that could catch that window, click "OK" and then close it. I
suppose i have to hack the .c source of finch instead. As I don't know
much C, it'd be awesome if someone could help me rewriting the source
so the autorization process becomes automatic.


Thanks alot in advance!
Mowsen

P.s> Thanks Etan for your great help in my previous posts :)

_______________________________________________
Devel mailing list
Devel@...
http://pidgin.im/cgi-bin/mailman/listinfo/devel

Re: Finch plugin - send "Please authorize me!" message automatically!

by Etan Reisner-2 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Assuming that dialog is done the normal way you want to listen for (and
respond to) the account-authorization-requested signal. See the
documentation for more specific information.

    -Etan

_______________________________________________
Devel mailing list
Devel@...
http://pidgin.im/cgi-bin/mailman/listinfo/devel

Re: Finch plugin - send "Please authorize me!" message automatically!

by Will Thompson-2 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

On 22/10/09 12:32, Etan Reisner wrote:
> Assuming that dialog is done the normal way you want to listen for (and
> respond to) the account-authorization-requested signal. See the
> documentation for more specific information.

I'm pretty sure mowsen is referring to MSN's (recently-added, I think)
use of purple_request_input() in msn_add_buddy(). That is, when you try
to add a contact on MSN, the prpl throws up a dialog box in your face
that you have to hit "okay" on before it actually does anything (or hit
"cancel" if you decided against it).

account-authorization-requested is for incoming auth requests.


--
Will

_______________________________________________
Devel mailing list
Devel@...
http://pidgin.im/cgi-bin/mailman/listinfo/devel