mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-28 19:16:20 +00:00
@@ -644,27 +644,32 @@ _cons_show_bookmarks(const GList *list)
|
|||||||
ProfWin *console = wins_get_console();
|
ProfWin *console = wins_get_console();
|
||||||
Bookmark *item;
|
Bookmark *item;
|
||||||
|
|
||||||
cons_show("");
|
if (list == NULL) {
|
||||||
cons_show("Bookmarks:");
|
cons_show("");
|
||||||
|
cons_show("No bookmarks found.");
|
||||||
|
} else {
|
||||||
|
cons_show("");
|
||||||
|
cons_show("Bookmarks:");
|
||||||
|
|
||||||
/* TODO: show status (connected or not) and window number */
|
/* TODO: show status (connected or not) and window number */
|
||||||
while (list != NULL) {
|
while (list != NULL) {
|
||||||
item = list->data;
|
item = list->data;
|
||||||
|
|
||||||
win_print_time(console, '-');
|
win_print_time(console, '-');
|
||||||
wprintw(console->win, " %s", item->jid);
|
wprintw(console->win, " %s", item->jid);
|
||||||
if (item->nick != NULL) {
|
if (item->nick != NULL) {
|
||||||
wprintw(console->win, "/%s", item->nick);
|
wprintw(console->win, "/%s", item->nick);
|
||||||
|
}
|
||||||
|
if (item->autojoin) {
|
||||||
|
wprintw(console->win, " (autojoin)");
|
||||||
|
}
|
||||||
|
wprintw(console->win, "\n");
|
||||||
|
list = g_list_next(list);
|
||||||
}
|
}
|
||||||
if (item->autojoin) {
|
|
||||||
wprintw(console->win, " (autojoin)");
|
|
||||||
}
|
|
||||||
wprintw(console->win, "\n");
|
|
||||||
list = g_list_next(list);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (wins_is_current(console)) {
|
if (wins_is_current(console)) {
|
||||||
win_update_virtual(console);
|
win_update_virtual(console);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
cons_alert();
|
cons_alert();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user