Changeset a97a336
- Timestamp:
- 2010-12-07T23:14:30Z (14 years ago)
- Branches:
- master
- Children:
- 83f1bd1d
- Parents:
- d76e12f
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
irc_im.c
rd76e12f ra97a336 513 513 } 514 514 } 515 else if( g_strcasecmp( ctcp[0], "HELP" ) == 0 && iu->bu ) 516 { 517 GString *supp = g_string_new( "Supported CTCPs:" ); 518 GList *l; 519 520 if( iu->bu->ic && iu->bu->ic->acc->prpl->transfer_request ) 521 g_string_append( supp, " DCC SEND," ); 522 if( iu->bu->ic && iu->bu->ic->acc->prpl->send_typing ) 523 g_string_append( supp, " TYPING," ); 524 if( iu->bu->ic->acc->prpl->buddy_action_list ) 525 for( l = iu->bu->ic->acc->prpl->buddy_action_list( iu->bu ); l; l = l->next ) 526 { 527 struct buddy_action *ba = l->data; 528 g_string_append_printf( supp, " %s (%s),", 529 ba->name, ba->description ); 530 } 531 g_string_truncate( supp, supp->len - 1 ); 532 irc_send_msg_f( iu, "NOTICE", iu->irc->user->nick, "\001HELP %s\001", supp->str ); 533 g_string_free( supp, TRUE ); 534 } 515 535 else if( iu->bu && iu->bu->ic && iu->bu->ic->acc->prpl->buddy_action ) 516 536 { -
protocols/jabber/jabber.c
rd76e12f ra97a336 570 570 if( ret == NULL ) 571 571 { 572 st ruct buddy_action ba[2] = {572 static const struct buddy_action ba[2] = { 573 573 { "VERSION", "Get client (version) information" }, 574 574 }; 575 575 576 ret = g_list_prepend( ret, ba + 0 );576 ret = g_list_prepend( ret, (void*) ba + 0 ); 577 577 } 578 578 -
protocols/twitter/twitter.c
rd76e12f ra97a336 377 377 } 378 378 379 static struct groupchat *twitter_chat_with( struct im_connection *ic, char *who )380 {381 return NULL;382 }383 384 379 static void twitter_keepalive( struct im_connection *ic ) 385 380 { … … 400 395 static void twitter_rem_deny( struct im_connection *ic, char *who ) 401 396 { 402 }403 404 static int twitter_send_typing( struct im_connection *ic, char *who, int typing )405 {406 return( 1 );407 397 } 408 398 … … 552 542 ret->chat_invite = twitter_chat_invite; 553 543 ret->chat_leave = twitter_chat_leave; 554 ret->chat_with = twitter_chat_with;555 544 ret->keepalive = twitter_keepalive; 556 545 ret->add_permit = twitter_add_permit; … … 558 547 ret->add_deny = twitter_add_deny; 559 548 ret->rem_deny = twitter_rem_deny; 560 ret->send_typing = twitter_send_typing;561 549 ret->buddy_data_add = twitter_buddy_data_add; 562 550 ret->buddy_data_free = twitter_buddy_data_free;
Note: See TracChangeset
for help on using the changeset viewer.