Changeset ba16895 for protocols/yahoo/yahoo.c
- Timestamp:
- 2009-10-10T13:48:44Z (15 years ago)
- Branches:
- master
- Children:
- 037b66a
- Parents:
- fa295e36
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/yahoo/yahoo.c
rfa295e36 rba16895 348 348 } 349 349 350 static void byahoo_auth_allow( struct im_connection *ic, const char *who ) 351 { 352 struct byahoo_data *yd = (struct byahoo_data *) ic->proto_data; 353 354 yahoo_accept_buddy_ymsg13( yd->y2_id, NULL, who ); 355 } 356 357 static void byahoo_auth_deny( struct im_connection *ic, const char *who ) 358 { 359 struct byahoo_data *yd = (struct byahoo_data *) ic->proto_data; 360 361 yahoo_reject_buddy_ymsg13( yd->y2_id, NULL, who, NULL ); 362 } 363 350 364 void byahoo_initmodule( ) 351 365 { … … 372 386 373 387 ret->handle_cmp = g_strcasecmp; 388 389 ret->auth_allow = byahoo_auth_allow; 390 ret->auth_deny = byahoo_auth_deny; 374 391 375 392 register_protocol(ret); … … 922 939 } 923 940 941 void ext_yahoo_contact_auth_request( int id, const char *myid, const char *who, const char *msg ) 942 { 943 struct im_connection *ic = byahoo_get_ic_by_id( id ); 944 945 imcb_ask_auth( ic, who, NULL ); 946 } 947 924 948 void ext_yahoo_contact_added( int id, const char *myid, const char *who, const char *msg ) 925 949 { 926 /* Groups schmoups. If I want to handle groups properly I can get the927 buddy data from some internal libyahoo2 structure. */928 imcb_add_buddy( byahoo_get_ic_by_id( id ), (char*) who, NULL );950 struct im_connection *ic = byahoo_get_ic_by_id( id ); 951 952 imcb_add_buddy( ic, (char*) who, NULL ); 929 953 } 930 954
Note: See TracChangeset
for help on using the changeset viewer.