mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Moved cons_show_contacts() to console module
This commit is contained in:
parent
9f380dae8e
commit
bb0f4a3fb2
@ -1122,6 +1122,20 @@ cons_navigation_help(void)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
cons_show_contacts(GSList *list)
|
||||
{
|
||||
GSList *curr = list;
|
||||
|
||||
while(curr) {
|
||||
PContact contact = curr->data;
|
||||
if (strcmp(p_contact_subscription(contact), "none") != 0) {
|
||||
window_show_contact(console, contact);
|
||||
}
|
||||
curr = g_slist_next(curr);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
_cons_splash_logo(void)
|
||||
{
|
||||
|
@ -1145,20 +1145,6 @@ win_room_show_status(const char * const contact)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
cons_show_contacts(GSList *list)
|
||||
{
|
||||
GSList *curr = list;
|
||||
|
||||
while(curr) {
|
||||
PContact contact = curr->data;
|
||||
if (strcmp(p_contact_subscription(contact), "none") != 0) {
|
||||
window_show_contact(console, contact);
|
||||
}
|
||||
curr = g_slist_next(curr);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
cons_bad_show(const char * const msg, ...)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user