]> code.citadel.org Git - citadel.git/blobdiff - citadel/serv_vcard.c
* serv_vcard: don't run hooks when not logged in (such as in SMTP sessions)
[citadel.git] / citadel / serv_vcard.c
index 2a33e84a050b1db7d5402dc89c69e35e08bf93d6..1e906ba22b0ffe051891e2291d2f229e30552eba 100644 (file)
@@ -62,6 +62,8 @@ int vcard_upload_beforesave(struct CtdlMessage *msg) {
        char buf[256];
 
 
+       if (!CC->logged_in) return(0);  /* Only do this if logged in. */
+
        /* If this isn't the configuration room, or if this isn't a MIME
         * message, don't bother.
         */
@@ -127,6 +129,8 @@ int vcard_upload_aftersave(struct CtdlMessage *msg) {
        long I;
 
 
+       if (!CC->logged_in) return(0);  /* Only do this if logged in. */
+
        /* If this isn't the configuration room, or if this isn't a MIME
         * message, don't bother.
         */