Added cmd_bookmark tests

This commit is contained in:
James Booth
2014-02-01 16:16:56 +00:00
parent 23842e5254
commit 652e99fdd8
5 changed files with 44 additions and 0 deletions

View File

@@ -1713,6 +1713,11 @@ 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);
return TRUE;
}
if (conn_status != JABBER_CONNECTED) {
cons_show("You are not currenlty connect.");
return TRUE;