]> code.citadel.org Git - citadel.git/commitdiff
Send private mail rather than posting a message whenever
authorArt Cancro <ajc@citadel.org>
Mon, 9 Apr 2007 19:28:53 +0000 (19:28 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 9 Apr 2007 19:28:53 +0000 (19:28 +0000)
an ENT0 command is issued within a mailbox room.

citadel/msgbase.c

index 3579dcb33067ecae481b0855589e4440109e3635..6cc3b33d6ab6d205344e259862ecdb24fd197240 100644 (file)
@@ -3413,12 +3413,11 @@ void cmd_ent0(char *entargs)
 
        CC->cs_flags |= CS_POSTING;
 
-       /* In the Mail> room we have to behave a little differently --
+       /* In mailbox rooms we have to behave a little differently --
         * make sure the user has specified at least one recipient.  Then
         * validate the recipient(s).
         */
-       if ( (CC->room.QRflags & QR_MAILBOX)
-          && (!strcasecmp(&CC->room.QRname[11], MAILROOM)) ) {
+       if ( (CC->room.QRflags & QR_MAILBOX) && (CC->curr_view == VIEW_MAILBOX) ) {
 
                if (CC->user.axlevel < 2) {
                        strcpy(recp, "sysop");