Changeset f536a99
- Timestamp:
- 2008-08-25T20:48:48Z (16 years ago)
- Branches:
- master
- Children:
- b119d5d
- Parents:
- f3579fd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
root_commands.c
rf3579fd rf536a99 238 238 } 239 239 240 static void cmd_showset( irc_t *irc, set_t * set)241 { 242 char * s;243 244 if( set && ( s = set_getstr( &set, set->key ) ) ) /* HACK! */245 irc_usermsg( irc, "%s = `%s'", set->key, s);246 else 247 irc_usermsg( irc, "%s is empty", set->key );240 static void cmd_showset( irc_t *irc, set_t **head, char *key ) 241 { 242 char *val; 243 244 if( ( val = set_getstr( head, key ) ) ) 245 irc_usermsg( irc, "%s = `%s'", key, val ); 246 else 247 irc_usermsg( irc, "%s is empty", key ); 248 248 } 249 249 … … 484 484 else 485 485 { 486 cmd_showset( irc, set_find( &a->set, set_name ));486 cmd_showset( irc, &a->set, set_name ); 487 487 } 488 488 } 489 489 else if( set_name ) 490 490 { 491 cmd_showset( irc, set_find( &a->set, set_name ));491 cmd_showset( irc, &a->set, set_name ); 492 492 } 493 493 else … … 496 496 while( s ) 497 497 { 498 cmd_showset( irc, s);498 cmd_showset( irc, &s, s->key ); 499 499 s = s->next; 500 500 } … … 864 864 else 865 865 { 866 cmd_showset( irc, set_find( &irc->set, set_name ));866 cmd_showset( irc, &irc->set, set_name ); 867 867 } 868 868 } 869 869 else if( set_name ) 870 870 { 871 cmd_showset( irc, set_find( &irc->set, set_name ));871 cmd_showset( irc, &irc->set, set_name ); 872 872 873 873 if( strchr( set_name, '/' ) ) … … 879 879 while( s ) 880 880 { 881 cmd_showset( irc, s);881 cmd_showset( irc, &s, s->key ); 882 882 s = s->next; 883 883 }
Note: See TracChangeset
for help on using the changeset viewer.