aboutsummaryrefslogtreecommitdiffstats
path: root/root_commands.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-06-07 16:51:31 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-06-07 16:51:31 +0100
commit0a6e5d1fd4e0c33e0529db7f94aae66b3f995f84 (patch)
tree1d770f1abffc94fcb3cb435b24058ab15f338767 /root_commands.c
parent70f69ecc5f80f060d1780110ed9792f9e19d2507 (diff)
Restore "set root_nick" behaviour. All disabled set evaluators are back
now. Getting *very* close to "feature parity" now!
Diffstat (limited to 'root_commands.c')
-rw-r--r--root_commands.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/root_commands.c b/root_commands.c
index 72dec6f1..a9106781 100644
--- a/root_commands.c
+++ b/root_commands.c
@@ -718,21 +718,19 @@ static void cmd_rename( irc_t *irc, char **cmd )
}
}
-#if 0
char *set_eval_root_nick( set_t *set, char *new_nick )
{
irc_t *irc = set->data;
- if( strcmp( irc->mynick, new_nick ) != 0 )
+ if( strcmp( irc->root->nick, new_nick ) != 0 )
{
- char *cmd[] = { "set_rename", irc->mynick, new_nick, NULL };
+ char *cmd[] = { "set_rename", irc->root->nick, new_nick, NULL };
cmd_rename( irc, cmd );
}
- return strcmp( irc->mynick, new_nick ) == 0 ? new_nick : SET_INVALID;
+ return strcmp( irc->root->nick, new_nick ) == 0 ? new_nick : SET_INVALID;
}
-#endif
static void cmd_block( irc_t *irc, char **cmd )
{