aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/yahoo/yahoo.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-07-24 13:15:43 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2010-07-24 13:15:43 +0200
commit78e2eb7bdaf0ab00321f47b93b37b603ef32bdb0 (patch)
tree1aa1d92eab97dd8d4b4343f4090665ca32f6caf9 /protocols/yahoo/yahoo.c
parent9034ba002b8945aee0f905b928bb0f60da9afe9f (diff)
New handling of authorization requests. The old one wasn't fully broken
actually, but it needed a reconnect to see new contacts.
Diffstat (limited to 'protocols/yahoo/yahoo.c')
-rw-r--r--protocols/yahoo/yahoo.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/protocols/yahoo/yahoo.c b/protocols/yahoo/yahoo.c
index 7a856254..1ace6020 100644
--- a/protocols/yahoo/yahoo.c
+++ b/protocols/yahoo/yahoo.c
@@ -338,20 +338,16 @@ static struct groupchat *byahoo_chat_with( struct im_connection *ic, char *who )
static void byahoo_auth_allow( struct im_connection *ic, const char *who )
{
- /*
struct byahoo_data *yd = (struct byahoo_data *) ic->proto_data;
- yahoo_accept_buddy_ymsg13( yd->y2_id, NULL, who );
- */
+ yahoo_confirm_buddy( yd->y2_id, who, 0, "" );
}
static void byahoo_auth_deny( struct im_connection *ic, const char *who )
{
- /*
struct byahoo_data *yd = (struct byahoo_data *) ic->proto_data;
- yahoo_reject_buddy_ymsg13( yd->y2_id, NULL, who, NULL );
- */
+ yahoo_confirm_buddy( yd->y2_id, who, 1, "" );
}
void byahoo_initmodule( )
@@ -928,16 +924,11 @@ void ext_yahoo_chat_yahooerror( int id, const char *me )
{
}
-void ext_yahoo_contact_auth_request( int id, const char *myid, const char *who, const char *msg )
-{
- /* Apparently no longer implemented.. */
-}
-
void ext_yahoo_contact_added( int id, const char *myid, const char *who, const char *msg )
{
struct im_connection *ic = byahoo_get_ic_by_id( id );
- imcb_add_buddy( ic, (char*) who, NULL );
+ imcb_ask_auth( ic, who, msg );
}
void ext_yahoo_rejected( int id, const char *who, const char *msg )