From: Art Cancro Date: Tue, 31 Aug 2010 20:07:26 +0000 (-0400) Subject: Logging in as "guest" from the text client now does the Right Thing X-Git-Tag: v8.01~797 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=41664e730082fae8713f0e9dcaa2994d918c67b4;p=citadel.git Logging in as "guest" from the text client now does the Right Thing depending on whether the server to which it is connected actually supports guest mode. This may or may not stay this way. --- diff --git a/citadel/textclient/citadel.c b/citadel/textclient/citadel.c index f44ed079a..998451f7b 100644 --- a/citadel/textclient/citadel.c +++ b/citadel/textclient/citadel.c @@ -1684,9 +1684,12 @@ 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 + + /* FIXME this is a stupid way to do guest mode but it's a reasonable test harness FIXME */ + if ( (ipc->ServInfo.guest_logins) && (!strcasecmp(fullname, "guest")) ) { + goto PWOK; + } + /* sign on to the server */ r = CtdlIPCTryLogin(ipc, fullname, aaa); if (r / 100 != 3)