about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
     }