diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-05-22 13:56:00 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-05-22 13:56:00 +0200 |
commit | fad296b79e42a0df6c0f118e1c011f480462551f (patch) | |
tree | f6648c70bc2983c1998b5f2d739188b7ac89996f /src/ui/console.c | |
parent | cb78ee46656972a5481ad0241fb50dc0e0d02413 (diff) | |
download | profani-tty-fad296b79e42a0df6c0f118e1c011f480462551f.tar.gz |
Display bookmark name
Have field in struct and display the name in `/bookmark list`. Regards https://github.com/profanity-im/profanity/issues/697
Diffstat (limited to 'src/ui/console.c')
-rw-r--r-- | src/ui/console.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/console.c b/src/ui/console.c index 4a1c58d4..337679e0 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -696,7 +696,11 @@ cons_show_bookmarks(const GList *list) if (muc_active(item->barejid) && roomwin) { presence_colour = THEME_ONLINE; } - win_print(console, presence_colour, "-", " %s", item->barejid); + if (item->name) { + win_print(console, presence_colour, "-", " %s - %s", item->name, item->barejid); + } else { + win_print(console, presence_colour, "-", " %s", item->barejid); + } if (item->nick) { win_append(console, presence_colour, "/%s", item->nick); } |