Added /bookmark remove tests

This commit is contained in:
James Booth
2014-02-02 00:37:37 +00:00
parent 38d8d8d984
commit a8ecbccc9c
6 changed files with 70 additions and 0 deletions

View File

@@ -1778,6 +1778,11 @@ cmd_bookmark(gchar **args, struct cmd_help_t help)
g_string_free(msg, TRUE);
} else if (strcmp(cmd, "remove") == 0) {
bookmark_remove(jid, autojoin);
if (autojoin) {
cons_show("Autojoin disabled for %s.", jid);
} else {
cons_show("Bookmark removed for %s.", jid);
}
} else {
cons_show("Usage: %s", help.usage);
}