about summary refs log tree commit diff stats
path: root/src/xmpp/roster.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-08-20 18:16:51 +0100
committerJames Booth <boothj5@gmail.com>2016-08-20 18:16:51 +0100
commit24c3eff428010e08bdf2beee763f9c6a59d6a68f (patch)
treee9dae3ddc09dbd1ae3befd67f4d36b6e12a7e188 /src/xmpp/roster.c
parenta978bb12bf0235be9e57e0e08b6328acc88add8b (diff)
downloadprofani-tty-24c3eff428010e08bdf2beee763f9c6a59d6a68f.tar.gz
Use libstrophe convenience functions for stanza attributes
Diffstat (limited to 'src/xmpp/roster.c')
-rw-r--r--src/xmpp/roster.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xmpp/roster.c b/src/xmpp/roster.c
index 7955aef3..c7725b43 100644
--- a/src/xmpp/roster.c
+++ b/src/xmpp/roster.c
@@ -218,7 +218,7 @@ roster_set_handler(xmpp_stanza_t *const stanza)
 
     // if from attribute exists and it is not current users barejid, ignore push
     Jid *my_jid = jid_create(connection_get_fulljid());
-    const char *from = xmpp_stanza_get_attribute(stanza, STANZA_ATTR_FROM);
+    const char *from = xmpp_stanza_get_from(stanza);
     if (from && (strcmp(from, my_jid->barejid) != 0)) {
         jid_destroy(my_jid);
         return;
@@ -276,7 +276,7 @@ roster_set_handler(xmpp_stanza_t *const stanza)
 void
 roster_result_handler(xmpp_stanza_t *const stanza)
 {
-    const char *id = xmpp_stanza_get_attribute(stanza, STANZA_ATTR_ID);
+    const char *id = xmpp_stanza_get_id(stanza);
 
     if (g_strcmp0(id, "roster") != 0) {
         return;