about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-06-01 22:54:53 +0100
committerJames Booth <boothj5@gmail.com>2013-06-01 22:54:53 +0100
commit83c41776928a71faa858d509aa6cf8cf451569a7 (patch)
tree7955d9159851efd591c501defd3d01b5b9073583
parent55f4e3ebcac71b8c52f021b378ef2efff58ac71b (diff)
downloadprofani-tty-83c41776928a71faa858d509aa6cf8cf451569a7.tar.gz
Include subscription states of "both" and "to" in /who output
-rw-r--r--src/ui/console.c3
1 files changed, 2 insertions, 1 deletions
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);