]> code.citadel.org Git - citadel.git/commitdiff
* Support a transient room create as well
authorArt Cancro <ajc@citadel.org>
Wed, 19 Jun 2002 21:52:14 +0000 (21:52 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 19 Jun 2002 21:52:14 +0000 (21:52 +0000)
citadel/ChangeLog
citadel/room_ops.c
citadel/techdoc/session.txt

index 31d06d7a577b9ac80acdcae4c6b4c8185ef9af95..e78c620575e5b73ace3c63b7f772e72cfafa52bf 100644 (file)
@@ -1,4 +1,7 @@
  $Log$
+ Revision 591.49  2002/06/19 21:52:13  ajc
+ * Support a transient room create as well
+
  Revision 591.48  2002/06/19 21:42:57  ajc
  * Added support for "transient goto" which allows entry into a private and/or
    zapped room without putting the room [back] on your known rooms list.  This
@@ -3751,4 +3754,3 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import
-
index 3a3f32b5cc35ccd5e69ee298c5eafa5330bddb85..e4efd211f8f289d671411b80c5e182591083fd69 100644 (file)
@@ -1594,12 +1594,14 @@ void cmd_cre8(char *args)
        char aaa[SIZ];
        unsigned newflags;
        struct floor *fl;
+       int avoid_access = 0;
 
        cre8_ok = extract_int(args, 0);
        extract(new_room_name, args, 1);
        new_room_name[ROOMNAMELEN - 1] = 0;
        new_room_type = extract_int(args, 2);
        extract(new_room_pass, args, 3);
+       avoid_access = extract_int(args, 5);
        new_room_pass[9] = 0;
        new_room_floor = 0;
 
@@ -1654,7 +1656,8 @@ void cmd_cre8(char *args)
 
        /* Check to make sure the requested room name doesn't already exist */
        newflags = create_room(new_room_name,
-                          new_room_type, new_room_pass, new_room_floor, 0, 0);
+                               new_room_type, new_room_pass, new_room_floor,
+                               0, avoid_access);
        if (newflags == 0) {
                cprintf("%d '%s' already exists.\n",
                        ERROR + ALREADY_EXISTS, new_room_name);
index f9edbfc8e81ac9eeba457fd1105c170cadb0aa61..a8d3835ce055051b3452339bd976c7d809126e3f 100644 (file)
@@ -841,6 +841,7 @@ or ERROR or ERROR+HIGHER_ACCESS_REQUIRED if the command will not succeed.
        3  -  Private; invitation only (sometimes called "exclusive")
  3  -  Password for new room (if it is a type 2 room)
  4  -  Floor number on which the room should reside (optional)
+ 5  -  Set to 1 to avoid automatically gaining access to the created room.
  
  If the create flag is set to 1, the room is created (unless something
 went wrong and an ERROR return is sent), and the server returns OK, but