mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
parent
44cff47668
commit
d152c48d6f
@ -684,8 +684,9 @@ cons_show_bookmarks(const GList *list)
|
|||||||
Bookmark *item = list->data;
|
Bookmark *item = list->data;
|
||||||
|
|
||||||
theme_item_t presence_colour = THEME_TEXT;
|
theme_item_t presence_colour = THEME_TEXT;
|
||||||
|
ProfWin *roomwin = (ProfWin*)wins_get_muc(item->barejid);
|
||||||
|
|
||||||
if (muc_active(item->barejid)) {
|
if (muc_active(item->barejid) && roomwin) {
|
||||||
presence_colour = THEME_ONLINE;
|
presence_colour = THEME_ONLINE;
|
||||||
}
|
}
|
||||||
win_print(console, presence_colour, '-', " %s", item->barejid);
|
win_print(console, presence_colour, '-', " %s", item->barejid);
|
||||||
@ -698,13 +699,10 @@ cons_show_bookmarks(const GList *list)
|
|||||||
if (item->password) {
|
if (item->password) {
|
||||||
win_append(console, presence_colour, " (private)");
|
win_append(console, presence_colour, " (private)");
|
||||||
}
|
}
|
||||||
if (muc_active(item->barejid)) {
|
if (muc_active(item->barejid) && roomwin) {
|
||||||
ProfWin *roomwin = (ProfWin*)wins_get_muc(item->barejid);
|
|
||||||
if (roomwin) {
|
|
||||||
int num = wins_get_num(roomwin);
|
int num = wins_get_num(roomwin);
|
||||||
win_append(console, presence_colour, " (win %d)", num);
|
win_append(console, presence_colour, " (win %d)", num);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
win_newline(console);
|
win_newline(console);
|
||||||
list = g_list_next(list);
|
list = g_list_next(list);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user