Changeset 0a6e5d1


Ignore:
Timestamp:
2010-06-07T15:51:31Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
a4d920b
Parents:
70f69ecc
Message:

Restore "set root_nick" behaviour. All disabled set evaluators are back
now. Getting *very* close to "feature parity" now!

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • irc.c

    r70f69ecc r0a6e5d1  
    116116        s = set_add( &b->set, "private", "true", set_eval_bool, irc );
    117117        s = set_add( &b->set, "query_order", "lifo", NULL, irc );
    118         s = set_add( &b->set, "root_nick", ROOT_NICK, NULL/*set_eval_root_nick*/, irc );
     118        s = set_add( &b->set, "root_nick", ROOT_NICK, set_eval_root_nick, irc );
    119119        s = set_add( &b->set, "simulate_netsplit", "true", set_eval_bool, irc );
    120120        s = set_add( &b->set, "timezone", "local", set_eval_timezone, irc );
  • root_commands.c

    r70f69ecc r0a6e5d1  
    719719}
    720720
    721 #if 0
    722721char *set_eval_root_nick( set_t *set, char *new_nick )
    723722{
    724723        irc_t *irc = set->data;
    725724       
    726         if( strcmp( irc->mynick, new_nick ) != 0 )
    727         {
    728                 char *cmd[] = { "set_rename", irc->mynick, new_nick, NULL };
     725        if( strcmp( irc->root->nick, new_nick ) != 0 )
     726        {
     727                char *cmd[] = { "set_rename", irc->root->nick, new_nick, NULL };
    729728               
    730729                cmd_rename( irc, cmd );
    731730        }
    732731       
    733         return strcmp( irc->mynick, new_nick ) == 0 ? new_nick : SET_INVALID;
    734 }
    735 #endif
     732        return strcmp( irc->root->nick, new_nick ) == 0 ? new_nick : SET_INVALID;
     733}
    736734
    737735static void cmd_block( irc_t *irc, char **cmd )
Note: See TracChangeset for help on using the changeset viewer.