mirror of
https://github.com/evennia/evennia.git
synced 2026-03-25 17:26:32 +01:00
Merge, with input and tweaks from discussion with lagos and Kelketek in irc.
This commit is contained in:
commit
80da420ee7
3 changed files with 19 additions and 9 deletions
|
|
@ -108,7 +108,8 @@ class TelnetProtocol(Telnet, StatefulTelnetProtocol, Session):
|
|||
def _write(self, data):
|
||||
"hook overloading the one used in plain telnet"
|
||||
#print "_write (%s): %s" % (self.state, " ".join(str(ord(c)) for c in data))
|
||||
data = data.rstrip('\r\n') + '\r\n'
|
||||
data = data.replace('\n', '\r\n').replace('\r\r\n', '\r\n')
|
||||
#data = data.replace('\n', '\r\n')
|
||||
super(TelnetProtocol, self)._write(mccp_compress(self, data))
|
||||
|
||||
def sendLine(self, line):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue