aboutsummaryrefslogtreecommitdiffstats
path: root/root_commands.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-06-30 11:17:18 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2006-06-30 11:17:18 +0200
commit5c9512ffa716f2bc8bbf9e2c31ee40624a0ff842 (patch)
treeaabc3b72023844f6177c8f7178b23b16e66340b8 /root_commands.c
parent171946457cccb7280f0918201093e79bbc9eac72 (diff)
Made set.c API more generic so it's not specific to irc_t structures anymore,
but can be used for account_t structures too, for example.
Diffstat (limited to 'root_commands.c')
-rw-r--r--root_commands.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/root_commands.c b/root_commands.c
index 47143531..815d618b 100644
--- a/root_commands.c
+++ b/root_commands.c
@@ -143,7 +143,7 @@ static void cmd_identify( irc_t *irc, char **cmd )
case STORAGE_OK:
irc_usermsg( irc, "Password accepted, settings and accounts loaded" );
irc_umode_set( irc, "+R", 1 );
- if( set_getint( irc, "auto_connect" ) )
+ if( set_getint( &irc->set, "auto_connect" ) )
cmd_account( irc, account_on );
break;
case STORAGE_OTHER_ERROR:
@@ -671,14 +671,14 @@ static void cmd_set( irc_t *irc, char **cmd )
{
if( cmd[1] && cmd[2] )
{
- set_setstr( irc, cmd[1], cmd[2] );
+ set_setstr( &irc->set, cmd[1], cmd[2] );
if( ( strcmp( cmd[2], "=" ) ) == 0 && cmd[3] )
irc_usermsg( irc, "Warning: Correct syntax: \002set <variable> <value>\002 (without =)" );
}
if( cmd[1] ) /* else 'forgotten' on purpose.. Must show new value after changing */
{
- char *s = set_getstr( irc, cmd[1] );
+ char *s = set_getstr( &irc->set, cmd[1] );
if( s )
irc_usermsg( irc, "%s = `%s'", cmd[1], s );
}