]> code.citadel.org Git - citadel.git/commitdiff
* Modified client rooms.c so that people can be invited to public rooms.
authorAndru Luvisi <cough@uncensored.citadel.org>
Tue, 17 Apr 2001 00:19:31 +0000 (00:19 +0000)
committerAndru Luvisi <cough@uncensored.citadel.org>
Tue, 17 Apr 2001 00:19:31 +0000 (00:19 +0000)
  This is needed because the V_LOCKOUT flag is set when people are
  kicked out of public rooms so they can't rejoin.  The only way to
  let them back in is to INVT them.

citadel/rooms.c

index e69a2a9ebf01d18f6b8579dc00b5aa383eeec456..807a5bea858b1622fa9cac320f85acbbc329b8cc 100644 (file)
@@ -725,10 +725,18 @@ void roomdir(void) {
 void invite(void) {
        char aaa[31],bbb[SIZ];
 
-       if ((room_flags & QR_PRIVATE)==0) {
-               printf("This is not a private room.\n");
-               return;
-               }
+     /* Because kicking people out of public rooms now sets a LOCKOUT
+      * flag, we need to be able to invite people into public rooms
+      * in order to let them back in again.
+      *        - cough
+      */
+
+     /*
+      * if ((room_flags & QR_PRIVATE)==0) {
+      *        printf("This is not a private room.\n");
+      *        return;
+      *        }
+      */
 
        newprompt("Name of user? ",aaa,30);
        if (aaa[0]==0) return;