about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-02-10 00:02:06 +0000
committerJames Booth <boothj5@gmail.com>2013-02-10 00:02:06 +0000
commit835906badadb3c1cea55beb38bdf1967c7f69c0a (patch)
treeaab551decb87b7f971ee1670d45291e88983d423 /src/xmpp
parentfacb2a653b1bf45cc3dd306c56466a6fe74903db (diff)
downloadprofani-tty-835906badadb3c1cea55beb38bdf1967c7f69c0a.tar.gz
Changed parameter to contact_list_add jid->barejid
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/iq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c
index 7a5c2d24..9954da1e 100644
--- a/src/xmpp/iq.c
+++ b/src/xmpp/iq.c
@@ -134,7 +134,7 @@ _iq_handle_roster_result(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
         xmpp_stanza_t *item = xmpp_stanza_get_children(query);
 
         while (item != NULL) {
-            const char *jid = xmpp_stanza_get_attribute(item, STANZA_ATTR_JID);
+            const char *barejid = xmpp_stanza_get_attribute(item, STANZA_ATTR_JID);
             const char *name = xmpp_stanza_get_attribute(item, STANZA_ATTR_NAME);
             const char *sub = xmpp_stanza_get_attribute(item, STANZA_ATTR_SUBSCRIPTION);
 
@@ -144,11 +144,11 @@ _iq_handle_roster_result(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
                 pending_out = TRUE;
             }
 
-            gboolean added = contact_list_add(jid, name, "offline", NULL, sub,
+            gboolean added = contact_list_add(barejid, name, "offline", NULL, sub,
                 pending_out);
 
             if (!added) {
-                log_warning("Attempt to add contact twice: %s", jid);
+                log_warning("Attempt to add contact twice: %s", barejid);
             }
 
             item = xmpp_stanza_get_next(item);