Fixed cmd_bookmark message when not connected

This commit is contained in:
James Booth
2014-02-01 16:24:51 +00:00
parent 652e99fdd8
commit 614ae232ef
4 changed files with 54 additions and 5 deletions

View File

@@ -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;
}