Added test for /bookmark list

This commit is contained in:
James Booth
2014-02-01 21:18:15 +00:00
parent 1654f13656
commit 3d7d070b13
10 changed files with 169 additions and 2 deletions

View File

@@ -1726,7 +1726,8 @@ cmd_bookmark(gchar **args, struct cmd_help_t help)
/* TODO: /bookmark list room@server */
if (cmd == NULL || strcmp(cmd, "list") == 0) {
cons_show_bookmarks(bookmark_get_list());
const GList *bookmarks = bookmark_get_list();
cons_show_bookmarks(bookmarks);
} else {
gboolean autojoin = FALSE;
gchar *jid = NULL;