1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

Include subscription states of "both" and "to" in /who output

This commit is contained in:
James Booth 2013-06-01 22:54:53 +01:00
parent 55f4e3ebca
commit 83c4177692

View File

@ -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);