about summary refs log tree commit diff stats
path: root/src/stanza.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-11-19 21:25:00 +0000
committerJames Booth <boothj5@gmail.com>2012-11-19 21:25:00 +0000
commitdb15494e2289bcf6c07a4b4e71e0a3791569236d (patch)
tree9c57a78b468db8e6e5f9664604011b4595185ceb /src/stanza.c
parent2cdd1b3810324ec9873437781001b528177e61c4 (diff)
downloadprofani-tty-db15494e2289bcf6c07a4b4e71e0a3791569236d.tar.gz
Fixed workaround for old server self room presence check
Diffstat (limited to 'src/stanza.c')
-rw-r--r--src/stanza.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stanza.c b/src/stanza.c
index cbd1ae0d..ba3e0b16 100644
--- a/src/stanza.c
+++ b/src/stanza.c
@@ -278,6 +278,7 @@ stanza_is_muc_self_presence(xmpp_stanza_t * const stanza,
     }
 
     // for older server that don't send status 110
+    x_children = xmpp_stanza_get_children(x);
     while (x_children != NULL) {
         if (strcmp(xmpp_stanza_get_name(x_children), STANZA_NAME_ITEM) == 0) {
             char *jid = xmpp_stanza_get_attribute(x_children, STANZA_ATTR_JID);