about summary refs log tree commit diff stats
path: root/src/command/commands.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-02-01 16:24:51 +0000
committerJames Booth <boothj5@gmail.com>2014-02-01 16:24:51 +0000
commit614ae232ef59dc221290f75d3ae33d169e1afaf0 (patch)
treeed8d7d76f316aeaa0247b0497eb4dd68938934fc /src/command/commands.c
parent652e99fdd8dcd42e75cbacde89aecbe903a368e2 (diff)
downloadprofani-tty-614ae232ef59dc221290f75d3ae33d169e1afaf0.tar.gz
Fixed cmd_bookmark message when not connected
Diffstat (limited to 'src/command/commands.c')
-rw-r--r--src/command/commands.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index bf83be07..85adebde 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -1711,15 +1711,15 @@ gboolean
 cmd_bookmark(gchar **args, struct cmd_help_t help)
 {
     jabber_conn_status_t conn_status = jabber_get_connection_status();
-    gchar *cmd = args[0];
 
-    if (cmd == NULL) {
-        cons_show("Usage: %s", help.usage);
+    if (conn_status != JABBER_CONNECTED) {
+        cons_show("You are not currently connected.");
         return TRUE;
     }
 
-    if (conn_status != JABBER_CONNECTED) {
-        cons_show("You are not currenlty connect.");
+    gchar *cmd = args[0];
+    if (cmd == NULL) {
+        cons_show("Usage: %s", help.usage);
         return TRUE;
     }