about summary refs log tree commit diff stats
path: root/src/command/commands.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-02-01 21:18:15 +0000
committerJames Booth <boothj5@gmail.com>2014-02-01 21:18:15 +0000
commit3d7d070b138a29e51dbaff72ebe1223d9f3d59cb (patch)
tree0648648120eaf6a94daec81c27c987ba55743207 /src/command/commands.c
parent1654f1365657bb1ed1c3151211fd13a3c8dc405b (diff)
downloadprofani-tty-3d7d070b138a29e51dbaff72ebe1223d9f3d59cb.tar.gz
Added test for /bookmark list
Diffstat (limited to 'src/command/commands.c')
-rw-r--r--src/command/commands.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index 85adebde..3338fd6e 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -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;