mirror of
https://github.com/evennia/evennia.git
synced 2026-03-24 16:56:32 +01:00
Fixed an issue where improper substitution would cause extra newline
characters for MCCP clients. This made them effectively press return twice on each command.
This commit is contained in:
parent
98a5f11159
commit
9290cf2c0c
1 changed files with 1 additions and 1 deletions
|
|
@ -108,7 +108,7 @@ 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.replace('\n', '\r\n')
|
||||
data = data.rstrip('\r\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