]> code.citadel.org Git - citadel.git/blobdiff - citadel/modules/jabber/xmpp_messages.c
When dumping or scanning the wholist in the Jabber
[citadel.git] / citadel / modules / jabber / xmpp_messages.c
index bdb09a5a22e32ad4ca65357a3a722456437c2e02..e579c7cfe602b35853208d78d02931ffd7337790 100644 (file)
@@ -91,8 +91,10 @@ void jabber_send_message(char *message_to, char *message_body) {
        if (!CC->logged_in) return;
 
        for (cptr = ContextList; cptr != NULL; cptr = cptr->next) {
-               if (!strcasecmp(cptr->cs_inet_email, message_to)) {
-                       recp = cptr->user.fullname;
+               if (cptr->logged_in) {
+                       if (!strcasecmp(cptr->cs_inet_email, message_to)) {
+                               recp = cptr->user.fullname;
+                       }
                }
        }