mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-19 18:26:22 +00:00
Added /wins unread
This commit is contained in:
@@ -403,12 +403,20 @@ cons_show_login_success(ProfAccount *account, int secured)
|
||||
}
|
||||
|
||||
void
|
||||
cons_show_wins(void)
|
||||
cons_show_wins(gboolean unread)
|
||||
{
|
||||
ProfWin *console = wins_get_console();
|
||||
cons_show("");
|
||||
cons_show("Active windows:");
|
||||
GSList *window_strings = wins_create_summary();
|
||||
GSList *window_strings = wins_create_summary(unread);
|
||||
|
||||
if (unread && window_strings == NULL) {
|
||||
cons_show("No windows with unread messages.");
|
||||
return;
|
||||
} else if (unread) {
|
||||
cons_show("Unread:");
|
||||
} else {
|
||||
cons_show("Active windows:");
|
||||
}
|
||||
|
||||
GSList *curr = window_strings;
|
||||
while (curr) {
|
||||
@@ -417,7 +425,6 @@ cons_show_wins(void)
|
||||
}
|
||||
g_slist_free_full(window_strings, free);
|
||||
|
||||
cons_show("");
|
||||
cons_alert();
|
||||
}
|
||||
|
||||
|
||||
@@ -237,7 +237,7 @@ void cons_show_error(const char *const cmd, ...);
|
||||
void cons_show_contacts(GSList *list);
|
||||
void cons_show_roster(GSList *list);
|
||||
void cons_show_roster_group(const char *const group, GSList *list);
|
||||
void cons_show_wins(void);
|
||||
void cons_show_wins(gboolean unread);
|
||||
char* cons_get_string(ProfConsoleWin *conswin);
|
||||
void cons_show_status(const char *const barejid);
|
||||
void cons_show_info(PContact pcontact);
|
||||
|
||||
Reference in New Issue
Block a user