Article View: alt.games.gb
Article #474Diffs for login at jed.
From: A Ghost Walking in the Shadows
Date: Thu, 28 Jan 1993 07:51
Date: Thu, 28 Jan 1993 07:51
86 lines
2831 bytes
2831 bytes
A change to the server at jed.nyu.edu at my request
changes how the login sequence works. Appended to this file
is a patch for 2.4.6 clients (gbII). I've updated the
gbII.client.tar file to work (although it is still 2.4.6).
The formal syntax for the client developers is:
Enter Password <race> <gov>:
Upon a failure due a to a wrong password, it displays:
Invalid: Bad Password.
and redisplays the Enter Password line.
If you are already on, it says:
Invalid: Player already logged on!
and redisplays the Enter Password line.
The main difference is this stuff is now INSIDE the server
instead of inthe welcome.txt file. Which means it is less likely
to vary game to game. :)
Keesh
--------- cut here ----- yes here bozo ---------
*** socket.c.bak Sun Jan 24 01:59:55 1993
--- socket.c Wed Jan 27 23:38:33 1993
***************
*** 66,71 ****
--- 66,72 ----
long last_no_logout_time; /* for no_logout */
int notify = -2;
int command_has_output = FALSE;
+ int password_invalid = FALSE;
char *build_scope ();
***************
*** 248,254 ****
}
if (end_prompt == PASS_PROMPT) {
client_stats = L_PASSWORD;
! if (GET_BIT (options, AUTOLOGIN)) {
send_password ();
}
} else {
--- 249,255 ----
}
if (end_prompt == PASS_PROMPT) {
client_stats = L_PASSWORD;
! if (GET_BIT (options, AUTOLOGIN) && !password_invalid) {
send_password ();
}
} else {
***************
*** 526,534 ****
MATCH (s, "Please * password*") ||
MATCH (s, "please * password*") ||
MATCH (s, "Please * Password*") ||
! MATCH (s, "Password:*"))
end_prompt = PASS_PROMPT;
! else
end_prompt = NOT_PROMPT;
}
--- 527,544 ----
MATCH (s, "Please * password*") ||
MATCH (s, "please * password*") ||
MATCH (s, "Please * Password*") ||
! MATCH (s, "Password:*")) {
end_prompt = PASS_PROMPT;
! } else if (streq (s, "Enter Password <race> <gov>:") &&
! !password_invalid) {
! end_prompt = PASS_PROMPT;
! } else if ((streq (s, "Invalid: Bad Password.") ||
! streq (s, "Invalid: Player already logged on!")) &&
! client_stats == L_PASSWORD) {
! client_stats = L_CONNECTED;
! password_invalid = TRUE;
! CLR_BIT (options, LOGINSUPPRESS);
! } else
end_prompt = NOT_PROMPT;
}
Technical Details
Message-ID:
<1k83apINNpqh@pith.uoregon.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!olivea!spool.mu.edu!uwm.edu!rpi!usenet.coe.montana.edu!news.u.washington.edu!news.uoregon.edu!darkwing.uoregon.edu!kofflevaShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!spool.mu.edu!uwm.edu!rpi!usenet.coe.montana.edu!news.u.washington.edu!news.uoregon.edu!darkwing.uoregon.edu!koffleva From: koffleva@darkwing.uoregon.edu (A Ghost Walking in the Shadows) Newsgroups: alt.games.gb Subject: Diffs for login at jed. Message-ID: <1k83apINNpqh@pith.uoregon.edu> Date: 28 Jan 93 07:51:53 GMT Organization: University of Oregon Network Services Lines: 86 NNTP-Posting-Host: darkwing.uoregon.edu