about summary refs log tree commit diff stats
path: root/src/profanity.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-10-04 21:31:09 +0100
committerJames Booth <boothj5@gmail.com>2012-10-04 21:31:09 +0100
commit65022b3c2f437b118c92622aff5115bcf4568323 (patch)
treea9f4fd0c1911a5a6528628051599ae24ba3104d4 /src/profanity.c
parent579594a8bf985928c308e5571cec5624877ad78a (diff)
downloadprofani-tty-65022b3c2f437b118c92622aff5115bcf4568323.tar.gz
Users added to contact list when no precense notification
The user is added from the roster
Diffstat (limited to 'src/profanity.c')
-rw-r--r--src/profanity.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/profanity.c b/src/profanity.c
index 4d7bc397..f57b0ca9 100644
--- a/src/profanity.c
+++ b/src/profanity.c
@@ -176,6 +176,11 @@ prof_handle_roster(GSList *roster)
         } else {
             cons_show("%s", entry->jid);
         }
+
+        // if contact not in contact list add them as offline
+        if (find_contact(entry->jid) == NULL) {
+            contact_list_add(entry->jid, "offline", NULL);
+        }
        
         roster = g_slist_next(roster);