summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2012-01-30 17:23:32 +0000
committerWill Thompson <will.thompson@collabora.co.uk>2012-01-31 17:40:45 +0000
commit7b258fc5ea423927878cd63e6f0a01ffe11d2869 (patch)
treefe0e6f0a6f79c508898975566101bc04bdb2ad23
parent821409f5203dc6b640ef6e0c00e0c343facc3a82 (diff)
conn-aliasing: use <item> passed to ::changed handler.
-rw-r--r--src/conn-aliasing.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/conn-aliasing.c b/src/conn-aliasing.c
index df0d257c9..3be800433 100644
--- a/src/conn-aliasing.c
+++ b/src/conn-aliasing.c
@@ -709,7 +709,6 @@ pep_nick_node_changed (WockyPepService *pep,
{
TpHandleRepoIface *contact_repo = tp_base_connection_get_handles (
(TpBaseConnection *) conn, TP_HANDLE_TYPE_CONTACT);
- WockyNode *node;
TpHandle handle;
const gchar *jid;
@@ -721,15 +720,13 @@ pep_nick_node_changed (WockyPepService *pep,
return;
}
- node = lm_message_node_get_child_with_namespace (wocky_stanza_get_top_node (stanza),
- "item", NULL);
- if (NULL == node)
+ if (NULL == item)
{
STANZA_DEBUG (stanza, "PEP event without item node, ignoring");
return;
}
- _grab_nickname (conn, handle, node);
+ _grab_nickname (conn, handle, item);
}