Changeset 7b23afd for protocols/yahoo
- Timestamp:
- 2005-11-07T16:16:18Z (19 years ago)
- Branches:
- master
- Children:
- f7f3ada
- Parents:
- fe51bcf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/yahoo/yahoo.c
rfe51bcf r7b23afd 64 64 }; 65 65 66 static char *yahoo_name()67 {68 return "Yahoo";69 }70 71 static struct prpl *my_protocol = NULL;72 66 static GSList *byahoo_inputs = NULL; 73 67 static int byahoo_chat_id = 0; … … 396 390 } 397 391 398 void byahoo_init( struct prpl *ret)399 { 400 ret->protocol = PROTO_YAHOO;401 ret->name = yahoo_name;392 void byahoo_init( ) 393 { 394 struct prpl *ret = g_new0(struct prpl, 1); 395 ret->name = "yahoo"; 402 396 403 397 ret->login = byahoo_login; 404 398 ret->close = byahoo_close; 405 399 ret->send_im = byahoo_send_im; 406 ret->send_typing = byahoo_send_typing;407 400 ret->get_info = byahoo_get_info; 408 401 ret->away_states = byahoo_away_states; … … 412 405 ret->remove_buddy = byahoo_remove_buddy; 413 406 ret->get_status_string = byahoo_get_status_string; 407 ret->send_typing = byahoo_send_typing; 414 408 415 409 ret->chat_send = byahoo_chat_send; … … 418 412 ret->chat_open = byahoo_chat_open; 419 413 420 my_protocol = ret;414 register_protocol(ret); 421 415 } 422 416 … … 432 426 yd = gc->proto_data; 433 427 434 if( gc->protocol == PROTO_YAHOO&& yd->y2_id == id )428 if( !strcmp(gc->prpl->name, "yahoo") && yd->y2_id == id ) 435 429 return( gc ); 436 430 }
Note: See TracChangeset
for help on using the changeset viewer.