]> code.citadel.org Git - citadel.git/commitdiff
Added V_ACCESS
authorArt Cancro <ajc@citadel.org>
Mon, 28 Sep 1998 19:59:30 +0000 (19:59 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 28 Sep 1998 19:59:30 +0000 (19:59 +0000)
citadel/citadel.h
citadel/room_ops.c
citadel/user_ops.c

index 6f4294dc2839ed6db19a61a2a2534f631a14ca30..e6fa823c65eedfb448ac40c3e2693ba9e3fdd4cd 100644 (file)
@@ -75,6 +75,7 @@ struct visit {
 
 #define V_FORGET       1               /* User has zapped this room        */
 #define V_LOCKOUT      2               /* User is locked out of this room  */
+#define V_ACCESS       4               /* Access is granted to this room   */
 
 
 /* Defines the actual user record */
index 205cc1659b095d6e5a06ea3daf9350d74266b6d0..4303e9e527d44630c9832d5b1d2a3aabecf349a8 100644 (file)
@@ -517,6 +517,7 @@ void usergoto(int where, int display_result)
 
        /* new method */
        vbuf.v_flags = vbuf.v_flags & ~V_FORGET & ~V_LOCKOUT;
+       vbuf.v_flags = vbuf.v_flags | V_ACCESS;
 
        CtdlSetRelationship(&vbuf, &CC->usersupp, &CC->quickroom);
        lputuser(&CC->usersupp,CC->curr_user);
@@ -1101,6 +1102,7 @@ unsigned create_room(int free_slot, char *new_room_name, int new_room_type, char
        CC->usersupp.forget[free_slot] = (-1);
        /* (new method) */
        vbuf.v_flags = vbuf.v_flags & ~V_FORGET & ~V_LOCKOUT;
+       vbuf.v_flags = vbuf.v_flags | V_ACCESS;
        CtdlSetRelationship(&vbuf, &CC->usersupp, &qrbuf);
        lputuser(&CC->usersupp,CC->curr_user);
 
index 9a6f4501de849a5b3514b490dfe81d4023acbbf7..5ac851d5b988b0f383813934524ada5464c7edb5 100644 (file)
@@ -762,6 +762,7 @@ void cmd_invt_kick(char *iuser, int op)
 
                /* new method */
                vbuf.v_flags = vbuf.v_flags & ~V_FORGET & ~V_LOCKOUT;
+               vbuf.v_flags = vbuf.v_flags | V_ACCESS;
                }
 
        if (op==0) {
@@ -770,6 +771,7 @@ void cmd_invt_kick(char *iuser, int op)
                USscratch.forget[CC->curr_rm]=CC->quickroom.QRgen;
 
                /* new method */
+               vbuf.v_flags = vbuf.v_flags & ~V_ACCESS;
                vbuf.v_flags = vbuf.v_flags | V_FORGET | V_LOCKOUT;
                }