Changeset 9779c18 for root_commands.c
- Timestamp:
- 2006-06-03T20:20:43Z (18 years ago)
- Branches:
- master
- Children:
- 5973412
- Parents:
- a15c097 (diff), fb62f81f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
root_commands.c
ra15c097 r9779c18 57 57 s --; 58 58 } 59 else 60 { 61 break; 62 } 63 } 64 else if( *s == '\\' && ( ( !q && s[1] ) || ( q && q == s[1] ) ) ) 65 { 66 char *cpy; 67 68 for( cpy = s; *cpy; cpy ++ ) 69 cpy[0] = cpy[1]; 59 70 } 60 71 else if( *s == q ) … … 245 256 int i = 0; 246 257 258 if( strchr( irc->umode, 'b' ) ) 259 irc_usermsg( irc, "Account list:" ); 260 247 261 for( a = irc->accounts; a; a = a->next ) 248 262 { … … 347 361 { 348 362 account_t *a; 363 int add_for_real = 1; 364 365 if( g_strcasecmp( cmd[1], "-tmp" ) == 0 ) 366 { 367 add_for_real = 0; 368 cmd ++; /* So evil... :-D */ 369 } 349 370 350 371 if( !( a = account_get( irc, cmd[1] ) ) ) … … 376 397 } 377 398 } 378 a->gc->prpl->add_buddy( a->gc, cmd[2] ); 399 400 /* By making this optional, you can talk to people without having to 401 add them to your *real* (server-side) contact list. */ 402 if( add_for_real ) 403 a->gc->prpl->add_buddy( a->gc, cmd[2] ); 404 379 405 add_buddy( a->gc, NULL, cmd[2], cmd[2] ); 380 406 … … 492 518 format = "%s\t%s"; 493 519 else 494 format = "%-32.32 %-16.16s";520 format = "%-32.32s %-16.16s"; 495 521 496 522 irc_usermsg( irc, format, "Handle", "Nickname" ); … … 532 558 else 533 559 { 534 gc->prpl->rem_permit( gc, cmd[2] );535 gc->prpl->add_deny( gc, cmd[2] );536 irc_usermsg( irc, "Buddy `%s' moved from your permit- to your deny-list", cmd[2] );560 bim_rem_allow( gc, cmd[2] ); 561 bim_add_block( gc, cmd[2] ); 562 irc_usermsg( irc, "Buddy `%s' moved from your allow- to your block-list", cmd[2] ); 537 563 } 538 564 } … … 551 577 format = "%s\t%s"; 552 578 else 553 format = "%-32.32 %-16.16s";579 format = "%-32.32s %-16.16s"; 554 580 555 581 irc_usermsg( irc, format, "Handle", "Nickname" ); … … 591 617 else 592 618 { 593 gc->prpl->rem_deny( gc, cmd[2] );594 gc->prpl->add_permit( gc, cmd[2] );595 596 irc_usermsg( irc, "Buddy `%s' moved from your deny- to your permit-list", cmd[2] );619 bim_rem_block( gc, cmd[2] ); 620 bim_add_allow( gc, cmd[2] ); 621 622 irc_usermsg( irc, "Buddy `%s' moved from your block- to your allow-list", cmd[2] ); 597 623 } 598 624 } … … 753 779 else 754 780 { 755 char utf8[1024];756 757 781 irc_usermsg( irc, "Setting your name to `%s'", cmd[2] ); 758 782 759 if( g_strncasecmp( set_getstr( irc, "charset" ), "none", 4 ) != 0 && 760 do_iconv( set_getstr( irc, "charset" ), "UTF-8", cmd[2], utf8, 0, 1024 ) != -1 ) 761 a->gc->prpl->set_info( a->gc, utf8 ); 762 else 763 a->gc->prpl->set_info( a->gc, cmd[2] ); 783 a->gc->prpl->set_info( a->gc, cmd[2] ); 764 784 } 765 785 }
Note: See TracChangeset
for help on using the changeset viewer.