about summary refs log tree commit diff stats
path: root/src/xmpp/stanza.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-03-08 21:20:26 +0000
committerJames Booth <boothj5@gmail.com>2014-03-08 21:20:26 +0000
commitb177250f47f5599943b6772aed43de49834147e2 (patch)
tree822ad8a0b4e38c84b1e004922e1a8e0308d809ac /src/xmpp/stanza.c
parentdd1ee18c72268839de8af64de5eb07c5a2499ff2 (diff)
downloadprofani-tty-b177250f47f5599943b6772aed43de49834147e2.tar.gz
Refactored muc_room_is_active to only take room, rather than full jid
Diffstat (limited to 'src/xmpp/stanza.c')
-rw-r--r--src/xmpp/stanza.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmpp/stanza.c b/src/xmpp/stanza.c
index 965b1671..65c329a5 100644
--- a/src/xmpp/stanza.c
+++ b/src/xmpp/stanza.c
@@ -597,7 +597,7 @@ stanza_is_muc_self_presence(xmpp_stanza_t * const stanza,
     char *from = xmpp_stanza_get_attribute(stanza, STANZA_ATTR_FROM);
     if (from != NULL) {
         Jid *jidp = jid_create(from);
-        if (muc_room_is_active(jidp)) {
+        if (muc_room_is_active(jidp->barejid)) {
             char *nick = muc_get_room_nick(jidp->barejid);
             if (g_strcmp0(jidp->resourcepart, nick) == 0) {
                 return TRUE;