mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-25 14:06:21 +00:00
Moved cons_show_room_list() to console module
This commit is contained in:
@@ -1106,26 +1106,6 @@ win_show_room_broadcast(const char * const room_jid, const char * const message)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
cons_show_room_list(GSList *rooms, const char * const conference_node)
|
||||
{
|
||||
if ((rooms != NULL) && (g_slist_length(rooms) > 0)) {
|
||||
cons_show("Chat rooms at %s:", conference_node);
|
||||
while (rooms != NULL) {
|
||||
DiscoItem *room = rooms->data;
|
||||
window_show_time(console, '-');
|
||||
wprintw(console->win, " %s", room->jid);
|
||||
if (room->name != NULL) {
|
||||
wprintw(console->win, ", (%s)", room->name);
|
||||
}
|
||||
wprintw(console->win, "\n");
|
||||
rooms = g_slist_next(rooms);
|
||||
}
|
||||
} else {
|
||||
cons_show("No chat rooms at %s", conference_node);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
cons_show_disco_info(const char *jid, GSList *identities, GSList *features)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user