]> code.citadel.org Git - citadel.git/blobdiff - citadel/modules/jabber/xmpp_query_namespace.c
When dumping or scanning the wholist in the Jabber
[citadel.git] / citadel / modules / jabber / xmpp_query_namespace.c
index e89fb8cfef118f83c94a216cc1914776eaf4d47a..fdec3135fe639a19703ae8dfbd3bab2aa9c7ee16 100644 (file)
@@ -75,12 +75,13 @@ void jabber_iq_roster_query(void)
        cprintf("<query xmlns=\"jabber:iq:roster\">");
 
        for (cptr = ContextList; cptr != NULL; cptr = cptr->next) {
-
-               if (
-                  (((cptr->cs_flags&CS_STEALTH)==0) || (aide))
-                  && (cptr->user.usernum != CC->user.usernum)
-                  ) {
-                       jabber_roster_item(cptr);
+               if (cptr->logged_in) {
+                       if (
+                          (((cptr->cs_flags&CS_STEALTH)==0) || (aide))
+                          && (cptr->user.usernum != CC->user.usernum)
+                          ) {
+                               jabber_roster_item(cptr);
+                       }
                }
        }