From 9796b23cfd5c0e3ab061f39bf77708fff4a3f52c Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 25 Sep 2016 22:57:43 +0100 Subject: [PATCH] Use caps_lookup when checking for feature --- src/xmpp/capabilities.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/xmpp/capabilities.c b/src/xmpp/capabilities.c index ca09e703..e09270cb 100644 --- a/src/xmpp/capabilities.c +++ b/src/xmpp/capabilities.c @@ -310,8 +310,7 @@ caps_lookup(const char *const jid) gboolean caps_jid_has_feature(const char *const jid, const char *const feature) { - char *ver = g_hash_table_lookup(jid_to_ver, jid); - EntityCapabilities *caps = ver ? _caps_by_ver(ver) : _caps_by_jid(jid); + EntityCapabilities *caps = caps_lookup(jid); if (caps == NULL) { return FALSE;