From 83c41776928a71faa858d509aa6cf8cf451569a7 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sat, 1 Jun 2013 22:54:53 +0100 Subject: [PATCH] Include subscription states of "both" and "to" in /who output --- src/ui/console.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/console.c b/src/ui/console.c index 79e5b3da..4e33376a 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -1246,7 +1246,8 @@ cons_show_contacts(GSList *list) while(curr) { PContact contact = curr->data; - if (strcmp(p_contact_subscription(contact), "none") != 0) { + if ((strcmp(p_contact_subscription(contact), "to") == 0) || + (strcmp(p_contact_subscription(contact), "both") == 0)) { win_show_contact(console, contact); } curr = g_slist_next(curr);