about summary refs log tree commit diff stats
path: root/command.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-05-10 09:55:55 +0100
committerJames Booth <boothj5@gmail.com>2012-05-10 09:55:55 +0100
commitaa26278a4611157e3eb8e55239bd6cd4f2a6b687 (patch)
tree180189901509e193393352672e9960e5278ea664 /command.c
parent90c985c4d2031c54c67d236797b0e8d528c73594 (diff)
downloadprofani-tty-aa26278a4611157e3eb8e55239bd6cd4f2a6b687.tar.gz
Moved beep/flash settings to preferences
Diffstat (limited to 'command.c')
-rw-r--r--command.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/command.c b/command.c
index ea36aa82..d963b1eb 100644
--- a/command.c
+++ b/command.c
@@ -31,6 +31,7 @@
 #include "jabber.h"
 #include "windows.h"
 #include "util.h"
+#include "preferences.h"
 
 static gboolean _handle_command(const char * const command, 
     const char * const inp);
@@ -223,10 +224,10 @@ static gboolean _cmd_set_beep(const char * const inp)
 {
     if (strcmp(inp, "/beep on") == 0) {
         cons_show("Sound enabled.");
-        win_set_beep(TRUE);
+        prefs_set_beep(TRUE);
     } else if (strcmp(inp, "/beep off") == 0) {
         cons_show("Sound disabled.");
-        win_set_beep(FALSE);
+        prefs_set_beep(FALSE);
     } else {
         cons_show("Usage: /beep <on/off>");
     }        
@@ -238,10 +239,10 @@ static gboolean _cmd_set_flash(const char * const inp)
 {
     if (strcmp(inp, "/flash on") == 0) {
         cons_show("Screen flash enabled.");
-        status_bar_set_flash(TRUE);
+        prefs_set_flash(TRUE);
     } else if (strcmp(inp, "/flash off") == 0) {
         cons_show("Screen flash disabled.");
-        status_bar_set_flash(FALSE);
+        prefs_set_flash(FALSE);
     } else {
         cons_show("Usage: /flash <on/off>");
     }