Changeset 78e2eb7 for protocols


Ignore:
Timestamp:
2010-07-24T11:15:43Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
ccc595b
Parents:
9034ba0
Message:

New handling of authorization requests. The old one wasn't fully broken
actually, but it needed a reconnect to see new contacts.

Location:
protocols/yahoo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • protocols/yahoo/Makefile

    r9034ba0 r78e2eb7  
    1515objects = yahoo.o crypt.o libyahoo2.o yahoo_fn.o yahoo_httplib.o yahoo_util.o
    1616
    17 CFLAGS += -Wall -DSTDC_HEADERS -DHAVE_STRING_H -DHAVE_STRCHR -DHAVE_MEMCPY -DHAVE_GLIB
     17CFLAGS += -Wall -DSTDC_HEADERS -DHAVE_STRING_H -DHAVE_STRCHR -DHAVE_MEMCPY -DHAVE_GLIB -Wno-pointer-to-int-cast
    1818LFLAGS += -r
    1919
  • protocols/yahoo/yahoo.c

    r9034ba0 r78e2eb7  
    339339static void byahoo_auth_allow( struct im_connection *ic, const char *who )
    340340{
    341         /*
    342341        struct byahoo_data *yd = (struct byahoo_data *) ic->proto_data;
    343342       
    344         yahoo_accept_buddy_ymsg13( yd->y2_id, NULL, who );
    345         */
     343        yahoo_confirm_buddy( yd->y2_id, who, 0, "" );
    346344}
    347345
    348346static void byahoo_auth_deny( struct im_connection *ic, const char *who )
    349347{
    350         /*
    351348        struct byahoo_data *yd = (struct byahoo_data *) ic->proto_data;
    352349       
    353         yahoo_reject_buddy_ymsg13( yd->y2_id, NULL, who, NULL );
    354         */
     350        yahoo_confirm_buddy( yd->y2_id, who, 1, "" );
    355351}
    356352
     
    929925}
    930926
    931 void ext_yahoo_contact_auth_request( int id, const char *myid, const char *who, const char *msg )
    932 {
    933         /* Apparently no longer implemented.. */
    934 }
    935 
    936927void ext_yahoo_contact_added( int id, const char *myid, const char *who, const char *msg )
    937928{
    938929        struct im_connection *ic = byahoo_get_ic_by_id( id );
    939930       
    940         imcb_add_buddy( ic, (char*) who, NULL );
     931        imcb_ask_auth( ic, who, msg );
    941932}
    942933
Note: See TracChangeset for help on using the changeset viewer.