Changes in protocols/yahoo/yahoo.c [7b23afd:9cb9868]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/yahoo/yahoo.c
r7b23afd r9cb9868 64 64 }; 65 65 66 static char *yahoo_name() 67 { 68 return "Yahoo"; 69 } 70 71 static struct prpl *my_protocol = NULL; 66 72 static GSList *byahoo_inputs = NULL; 67 73 static int byahoo_chat_id = 0; … … 390 396 } 391 397 392 void byahoo_init( )393 { 394 struct prpl *ret = g_new0(struct prpl, 1);395 ret->name = "yahoo";398 void byahoo_init( struct prpl *ret ) 399 { 400 ret->protocol = PROTO_YAHOO; 401 ret->name = yahoo_name; 396 402 397 403 ret->login = byahoo_login; 398 404 ret->close = byahoo_close; 399 405 ret->send_im = byahoo_send_im; 406 ret->send_typing = byahoo_send_typing; 400 407 ret->get_info = byahoo_get_info; 401 408 ret->away_states = byahoo_away_states; … … 405 412 ret->remove_buddy = byahoo_remove_buddy; 406 413 ret->get_status_string = byahoo_get_status_string; 407 ret->send_typing = byahoo_send_typing;408 414 409 415 ret->chat_send = byahoo_chat_send; … … 411 417 ret->chat_leave = byahoo_chat_leave; 412 418 ret->chat_open = byahoo_chat_open; 413 414 register_protocol(ret); 419 ret->cmp_buddynames = g_strcasecmp; 420 421 my_protocol = ret; 415 422 } 416 423 … … 426 433 yd = gc->proto_data; 427 434 428 if( !strcmp(gc->prpl->name, "yahoo")&& yd->y2_id == id )435 if( gc->protocol == PROTO_YAHOO && yd->y2_id == id ) 429 436 return( gc ); 430 437 }
Note: See TracChangeset
for help on using the changeset viewer.