Added cons message on ./bookmark add

This commit is contained in:
James Booth
2014-02-02 00:00:08 +00:00
parent af51fa3c68
commit ebafc19220
2 changed files with 22 additions and 0 deletions

View File

@@ -1764,6 +1764,18 @@ cmd_bookmark(gchar **args, struct cmd_help_t help)
if (strcmp(cmd, "add") == 0) {
bookmark_add(jid, nick, autojoin);
GString *msg = g_string_new("Bookmark added for ");
g_string_append(msg, jid);
if (nick != NULL) {
g_string_append(msg, ", nickname: ");
g_string_append(msg, nick);
}
if (autojoin) {
g_string_append(msg, ", autojoin enabled");
}
g_string_append(msg, ".");
cons_show(msg->str);
g_string_free(msg, TRUE);
} else if (strcmp(cmd, "remove") == 0) {
bookmark_remove(jid, autojoin);
} else {