Thread View: alt.games.gb
1 messages
1 total messages
Started by A Ghost Walking in the Shadows
Thu, 28 Jan 1993 07:51
Diffs for login at jed.
Author: 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;
}
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads