From 069bdbc331567e7d44b615d265be3e5f05ab62bd Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 3 Feb 2013 03:24:13 +0000 Subject: Refactored string preferences --- src/command/command.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/command') diff --git a/src/command/command.c b/src/command/command.c index 24c1b8fa..eb8f0fe6 100644 --- a/src/command/command.c +++ b/src/command/command.c @@ -1492,7 +1492,7 @@ _cmd_theme(gchar **args, struct cmd_help_t help) cons_show("Usage: %s", help.usage); } else if (theme_load(args[1])) { ui_load_colours(); - prefs_set_theme(args[1]); + prefs_set_string(PREF_THEME, args[1]); cons_show("Loaded theme: %s", args[1]); } else { cons_show("Couldn't find theme: %s", args[1]); @@ -2187,7 +2187,7 @@ _cmd_set_autoaway(gchar **args, struct cmd_help_t help) (strcmp(value, "off") != 0)) { cons_show("Mode must be one of 'idle', 'away' or 'off'"); } else { - prefs_set_autoaway_mode(value); + prefs_set_string(PREF_AUTOAWAY_MODE, value); cons_show("Auto away mode set to: %s.", value); } @@ -2205,10 +2205,10 @@ _cmd_set_autoaway(gchar **args, struct cmd_help_t help) if (strcmp(setting, "message") == 0) { if (strcmp(value, "off") == 0) { - prefs_set_autoaway_message(NULL); + prefs_set_string(PREF_AUTOAWAY_MESSAGE, NULL); cons_show("Auto away message cleared."); } else { - prefs_set_autoaway_message(value); + prefs_set_string(PREF_AUTOAWAY_MESSAGE, value); cons_show("Auto away message set to: \"%s\".", value); } -- cgit 1.4.1-2-gfad0