mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Use caps_lookup when checking for feature
This commit is contained in:
parent
751d9624c3
commit
51aef5ca3b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user