about summary refs log tree commit diff stats
path: root/src/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index 05122a96..fb32d683 100644
--- a/src/command.c
+++ b/src/command.c
@@ -38,6 +38,7 @@ static gboolean _handle_command(const char * const command,
     const char * const inp);
 static gboolean _cmd_quit(const char * const inp);
 static gboolean _cmd_help(const char * const inp);
+static gboolean _cmd_prefs(const char * const inp);
 static gboolean _cmd_who(const char * const inp);
 static gboolean _cmd_ros(const char * const inp);
 static gboolean _cmd_connect(const char * const inp);
@@ -73,6 +74,7 @@ static struct cmd_t commands[] = {
     { "/dnd", _cmd_dnd },
     { "/flash", _cmd_set_flash },
     { "/help", _cmd_help },
+    { "/prefs", _cmd_prefs },
     { "/msg", _cmd_msg },
     { "/online", _cmd_online },
     { "/quit", _cmd_quit },
@@ -82,7 +84,7 @@ static struct cmd_t commands[] = {
     { "/xa", _cmd_xa },
 };
 
-static const int num_cmds = 15;
+static const int num_cmds = 16;
     
 gboolean process_input(char *inp)
 {
@@ -194,6 +196,13 @@ static gboolean _cmd_help(const char * const inp)
     return TRUE;
 }
 
+static gboolean _cmd_prefs(const char * const inp)
+{
+    cons_prefs();
+
+    return TRUE;
+}
+
 static gboolean _cmd_ros(const char * const inp)
 {
     jabber_conn_status_t conn_status = jabber_connection_status();