about summary refs log tree commit diff stats
path: root/src/command
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-02-03 03:24:13 +0000
committerJames Booth <boothj5@gmail.com>2013-02-03 03:24:13 +0000
commit069bdbc331567e7d44b615d265be3e5f05ab62bd (patch)
treee3be8705baa52870a6a38511d623cb78cabd84db /src/command
parent7982b8e41334983c222f3e400d62a7d358e908d9 (diff)
downloadprofani-tty-069bdbc331567e7d44b615d265be3e5f05ab62bd.tar.gz
Refactored string preferences
Diffstat (limited to 'src/command')
-rw-r--r--src/command/command.c8
1 files changed, 4 insertions, 4 deletions
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);
         }