@su and @sd didn't prompt correctly for non GOAHEAD telnet code handling
authornveid <nveid@comcast.net>
Sat, 28 Oct 2006 11:49:47 +0000 (11:49 +0000)
committernveid <nveid@comcast.net>
Sat, 28 Oct 2006 11:49:47 +0000 (11:49 +0000)
clients.

game/txt/changes/0.72p2
src/bsd.c

index 924f829ac05b3aeb1088b7dc879f4072b27fddc5..39dce78e5f64cb74e457a9e1f357dfdedc30e01e 100644 (file)
@@ -25,3 +25,5 @@ CobraMUSH Version 0.72p2
     * Certain command restrictions that were applied did not give
       appropriate command failure messages correctly. [RLB]
     * Checking info for any attributes would crash the game. [RLB]
+    * @su and @sd Password: prompt didn't handle correctly for clients
+      that did not handle the GOAHEAD prompt telnet code. [RLB]
index dd06654417bded4533881e8da601e8ebb5f0c149..18a09158033681829b043535b6d42ddba054d047 100644 (file)
--- a/src/bsd.c
+++ b/src/bsd.c
@@ -5600,6 +5600,9 @@ COMMAND(cmd_su) {
       /* We're only entering using a password at this moment */
        queue_newwrite(match, (unsigned char *) tprintf(T("Password: %c%c"),
                                                        IAC, GOAHEAD), 13);
+       if(!PromptConnection(match))
+         queue_newwrite(match, (unsigned char *) "\r\n", 3);
+
        match->input_handler = password_handler;
        match->pinfo.object = target;
        match->pinfo.function = &pw_div_connect;
@@ -5649,6 +5652,9 @@ COMMAND(cmd_su) {
        /* Part 3b.  Put guy in password program */
        queue_newwrite(match, (unsigned char *) tprintf(T("Password: %c%c"),
                                                        IAC, GOAHEAD), 13);
+       if(!PromptConnection(match))
+         queue_newwrite(match, (unsigned char *) "\r\n", 3);
+
        match->input_handler = password_handler;
        match->pinfo.object = target;
        match->pinfo.function = &pw_player_connect;