* Added an undocumented feature to the text client: login as 'guest' to go straight...
authorArt Cancro <ajc@citadel.org>
Wed, 25 Aug 2010 15:09:54 +0000 (15:09 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 25 Aug 2010 15:09:54 +0000 (15:09 +0000)
* Removed the deprecated 'Doorway' feature.

citadel/citadel.rc
citadel/textclient/citadel.c

index 1c271084c13aedbc1dbf6f28c252be56f3fa4883..4b67a1924365540365cce39fecfca2742dd4d044 100644 (file)
@@ -246,7 +246,6 @@ alternate_semantics=no
 #
 cmd=1,0,&? (Help)
 cmd=1,0,&Help
-# cmd=2,0,&*Doorway
 cmd=3,0,&Chat
 #
 # If you want to use an external editor by default, set <E>nter message
index 30583cfaef5b674eaf63b6372476dc61916512a2..f44ed079a56599c1b87e88b55ea6f5826b0a08ef 100644 (file)
@@ -1684,6 +1684,9 @@ int main(int argc, char **argv)
                mcmd = 29;
                goto TERMN8;
        }
+       if (!strcasecmp(fullname, "guest")) {           // GUEST MODE
+               goto PWOK;                              // THIS DOES NOT WORK YET
+       }                                               // EXPERIMENT FIXME FIXME FIXME
        /* sign on to the server */
        r = CtdlIPCTryLogin(ipc, fullname, aaa);
        if (r / 100 != 3)
@@ -2119,21 +2122,6 @@ NEWUSR:  if (IsEmptyStr(rc_password)) {
                                chatmode(ipc);
                                break;
 
-                       case 2:
-                               if (ipc->isLocal) {
-                                       screen_reset();
-                                       stty_ctdl(SB_RESTORE);
-                                       snprintf(aaa, sizeof aaa, "USERNAME=\042%s\042; export USERNAME;"
-                                                "exec ./subsystem %ld %d %d", fullname,
-                                                usernum, screenwidth, axlevel);
-                                       ka_system(aaa);
-                                       stty_ctdl(SB_NO_INTR);
-                                       screen_set();
-                               } else {
-                                       scr_printf("*** Can't run doors when server is not local.\n");
-                               }
-                               break;
-
                        case 17:
                                who_is_online(ipc, 0);
                                break;