diff options
Diffstat (limited to 'src/jabber.c')
-rw-r--r-- | src/jabber.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/jabber.c b/src/jabber.c index f9c4f0c7..f1626869 100644 --- a/src/jabber.c +++ b/src/jabber.c @@ -386,14 +386,8 @@ _roster_handler(xmpp_conn_t * const conn, const char *jid = xmpp_stanza_get_attribute(item, "jid"); const char *name = xmpp_stanza_get_attribute(item, "name"); const char *sub = xmpp_stanza_get_attribute(item, "subscription"); + contact_list_add(jid, name, "offline", NULL, sub); - if (sub != NULL) { - if (strcmp(sub, "none") != 0) { - - contact_list_add(jid, name, "offline", NULL, sub); - - } - } item = xmpp_stanza_get_next(item); } /* |