Changeset 87b6a3e
- Timestamp:
- 2006-03-21T08:35:46Z (19 years ago)
- Branches:
- master
- Children:
- 7b07dc6
- Parents:
- 19a6c75
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
root_commands.c
r19a6c75 r87b6a3e 484 484 account_t *a; 485 485 486 if( !cmd[2] ) 486 if( !cmd[2] && ( a = account_get( irc, cmd[1] ) ) && a->gc ) 487 { 488 char *format; 489 GSList *l; 490 491 if( strchr( irc->umode, 'b' ) != NULL ) 492 format = "%s\t%s"; 493 else 494 format = "%-32.32 %-16.16s"; 495 496 irc_usermsg( irc, format, "Handle", "Nickname" ); 497 for( l = a->gc->deny; l; l = l->next ) 498 { 499 user_t *u = user_findhandle( a->gc, l->data ); 500 irc_usermsg( irc, format, l->data, u ? u->nick : "(none)" ); 501 } 502 irc_usermsg( irc, "End of list." ); 503 504 return; 505 } 506 else if( !cmd[2] ) 487 507 { 488 508 user_t *u = user_find( irc, cmd[1] ); … … 523 543 account_t *a; 524 544 525 if( !cmd[2] ) 545 if( !cmd[2] && ( a = account_get( irc, cmd[1] ) ) && a->gc ) 546 { 547 char *format; 548 GSList *l; 549 550 if( strchr( irc->umode, 'b' ) != NULL ) 551 format = "%s\t%s"; 552 else 553 format = "%-32.32 %-16.16s"; 554 555 irc_usermsg( irc, format, "Handle", "Nickname" ); 556 for( l = a->gc->deny; l; l = l->next ) 557 { 558 user_t *u = user_findhandle( a->gc, l->data ); 559 irc_usermsg( irc, format, l->data, u ? u->nick : "(none)" ); 560 } 561 irc_usermsg( irc, "End of list." ); 562 563 return; 564 } 565 else if( !cmd[2] ) 526 566 { 527 567 user_t *u = user_find( irc, cmd[1] );
Note: See TracChangeset
for help on using the changeset viewer.