Changeset 0fbd3a6d for root_commands.c
- Timestamp:
- 2007-12-19T00:24:32Z (16 years ago)
- Branches:
- master
- Children:
- 1ba7e8f
- Parents:
- 793cc25 (diff), 2379566 (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
r793cc25 r0fbd3a6d 199 199 break; 200 200 default: 201 irc_usermsg( irc, "Error: '%d'", status );201 irc_usermsg( irc, "Error: `%d'", status ); 202 202 break; 203 203 } … … 234 234 a = account_add( irc, prpl, cmd[3], cmd[4] ); 235 235 if( cmd[5] ) 236 { 237 irc_usermsg( irc, "Warning: Passing a servername/other flags to `account add' " 238 "is now deprecated. Use `account set' instead." ); 236 239 set_setstr( &a->set, "server", cmd[5] ); 240 } 237 241 238 242 irc_usermsg( irc, "Account successfully added" ); … … 317 321 else 318 322 { 319 irc_usermsg( irc, "No accounts known. Use 'account add' to add one." );323 irc_usermsg( irc, "No accounts known. Use `account add' to add one." ); 320 324 } 321 325 } … … 403 407 } 404 408 405 if( ( strcmp( cmd[3], "=" ) ) == 0 && cmd[4] ) 406 irc_usermsg( irc, "Warning: Correct syntax: \002account set <variable> <value>\002 (without =)" ); 407 else if( g_strncasecmp( cmd[2], "-del", 4 ) == 0 ) 409 if( g_strncasecmp( cmd[2], "-del", 4 ) == 0 ) 408 410 set_reset( &a->set, set_name ); 409 411 else … … 745 747 static void cmd_set( irc_t *irc, char **cmd ) 746 748 { 747 char *set_name = NULL;749 char *set_name = cmd[1]; 748 750 749 751 if( cmd[1] && cmd[2] ) 750 752 { 751 if( ( strcmp( cmd[2], "=" ) ) == 0 && cmd[3] ) 752 { 753 irc_usermsg( irc, "Warning: Correct syntax: \002set <variable> <value>\002 (without =)" ); 754 return; 755 } 756 else if( g_strncasecmp( cmd[1], "-del", 4 ) == 0 ) 753 if( g_strncasecmp( cmd[1], "-del", 4 ) == 0 ) 757 754 { 758 755 set_reset( &irc->set, cmd[2] ); … … 762 759 { 763 760 set_setstr( &irc->set, cmd[1], cmd[2] ); 764 set_name = cmd[1];765 761 } 766 762 }
Note: See TracChangeset
for help on using the changeset viewer.