From 41664e730082fae8713f0e9dcaa2994d918c67b4 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 31 Aug 2010 16:07:26 -0400 Subject: [PATCH] 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. --- citadel/textclient/citadel.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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) -- 2.39.2