diff options
author | James Booth <boothj5@gmail.com> | 2014-02-01 16:24:51 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-02-01 16:24:51 +0000 |
commit | 614ae232ef59dc221290f75d3ae33d169e1afaf0 (patch) | |
tree | ed8d7d76f316aeaa0247b0497eb4dd68938934fc /src | |
parent | 652e99fdd8dcd42e75cbacde89aecbe903a368e2 (diff) | |
download | profani-tty-614ae232ef59dc221290f75d3ae33d169e1afaf0.tar.gz |
Fixed cmd_bookmark message when not connected
Diffstat (limited to 'src')
-rw-r--r-- | src/command/commands.c | 10 |
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; } |