Changeset 0a6e5d1 for root_commands.c


Ignore:
Timestamp:
2010-06-07T15:51:31Z (14 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!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.