$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
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
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;
/* 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);
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