[ScryMUD] SVN Commit Info r894 - trunk/mud/grrmud/server
scrymud at wanfear.com
scrymud at wanfear.com
Sun Feb 25 00:33:41 PST 2007
Author: eroper
Date: 2007-02-25 00:33:41 -0800 (Sun, 25 Feb 2007)
New Revision: 894
Modified:
trunk/mud/grrmud/server/telnet_handler.cc
Log:
Wait for a response between offering to send end-of-record markers and turning
them on. This is kinder to clients that aren't able to ask us not to send what
they interpret as garbage at the end of prompts.
Modified: trunk/mud/grrmud/server/telnet_handler.cc
===================================================================
--- trunk/mud/grrmud/server/telnet_handler.cc 2007-02-25 08:06:44 UTC (rev 893)
+++ trunk/mud/grrmud/server/telnet_handler.cc 2007-02-25 08:33:41 UTC (rev 894)
@@ -46,7 +46,7 @@
send(DO,TELOPT_NAWS);
- my_option_states[TELOPT_EOR] = true;
+ my_want_states[TELOPT_EOR] = true;
send(WILL,TELOPT_EOR);
send(WONT,TELOPT_ECHO);
@@ -126,6 +126,10 @@
my_option_states[opt] = false;
need_to_respond = true;
} else {
+ if ( my_want_states[opt] ) {
+ mudlog << "TelnetHandler::rcv_dont : Asked for, but was denied option " << opt << endl;
+ my_want_states[opt] = false;
+ }
need_to_respond = false;
}
More information about the ScryMUD
mailing list