diff options
author | James Booth <boothj5@gmail.com> | 2013-04-21 01:32:47 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-04-21 01:32:47 +0100 |
commit | bb0f4a3fb2a9d3f11e4bd7d62c53e68491fc0f02 (patch) | |
tree | 48df26ea747c86527bdeb9c5f9923537a4104e66 /src/ui | |
parent | 9f380dae8e73ef9a72f0e7410c6782788db34b6d (diff) | |
download | profani-tty-bb0f4a3fb2a9d3f11e4bd7d62c53e68491fc0f02.tar.gz |
Moved cons_show_contacts() to console module
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/console.c | 14 | ||||
-rw-r--r-- | src/ui/windows.c | 14 |
2 files changed, 14 insertions, 14 deletions
diff --git a/src/ui/console.c b/src/ui/console.c index 9eac9ec5..79d15add 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -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) { diff --git a/src/ui/windows.c b/src/ui/windows.c index 732b95bb..14b4b34e 100644 --- a/src/ui/windows.c +++ b/src/ui/windows.c @@ -1146,20 +1146,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, ...) { va_list arg; |