Changeset aa44bdd
- Timestamp:
- 2010-04-11T23:18:03Z (15 years ago)
- Branches:
- master
- Children:
- e21c0f8
- Parents:
- 6c56f42
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
root_commands.c
r6c56f42 raa44bdd 647 647 } 648 648 649 #if 0650 649 static void cmd_info( irc_t *irc, char **cmd ) 651 650 { … … 655 654 if( !cmd[2] ) 656 655 { 657 user_t *u = user_find( irc, cmd[1] );658 if( ! u || !u->ic)656 irc_user_t *iu = irc_user_by_name( irc, cmd[1] ); 657 if( !iu || !iu->bu ) 659 658 { 660 659 irc_usermsg( irc, "Nick `%s' does not exist", cmd[1] ); 661 660 return; 662 661 } 663 ic = u->ic;664 cmd[2] = u->handle;665 } 666 else if( !( a = account_get( irc , cmd[1] ) ) )662 ic = iu->bu->ic; 663 cmd[2] = iu->bu->handle; 664 } 665 else if( !( a = account_get( irc->b, cmd[1] ) ) ) 667 666 { 668 667 irc_usermsg( irc, "Invalid account" ); … … 684 683 } 685 684 } 686 #endif687 685 688 686 static void cmd_rename( irc_t *irc, char **cmd ) … … 1192 1190 { "help", 0, cmd_help, 0 }, 1193 1191 { "identify", 1, cmd_identify, 0 }, 1192 { "info", 1, cmd_info, 0 }, 1194 1193 { "no", 0, cmd_yesno, 0 }, 1195 1194 { "register", 1, cmd_register, 0 }, … … 1205 1204 { "chat", 1, cmd_chat, 0 }, 1206 1205 { "ft", 0, cmd_transfer, 0 }, 1207 { "info", 1, cmd_info, 0 },1208 1206 { "join_chat", 2, cmd_join_chat, 0 }, 1209 { "nick", 1, cmd_nick, 0 },1210 1207 { "qlist", 0, cmd_qlist, 0 }, 1211 1208 { "transfer", 0, cmd_transfer, 0 },
Note: See TracChangeset
for help on using the changeset viewer.