Commit graph

74 commits

Author SHA1 Message Date
Griatch
c3ebd8d251 Use to_str/to_bytes, replacing old versions 2019-01-16 23:26:46 +01:00
Vincent Le Goff
dcb029e5ff Clarify documentation and method name 2019-01-15 20:38:41 +01:00
Vincent Le Goff
49eb2b2873 Solve the accentuation problem in Evennia (Python 3) 2019-01-12 15:27:36 +01:00
Griatch
981119b640 Fix merge conflicts 2019-01-01 15:19:20 +01:00
Tehom
40a37e501f Add some cleanup steps to prevent unclean reactor 2018-10-16 20:33:12 -04:00
Griatch
e54b87b6fd Allow for connecting over telnet 2018-10-13 19:12:04 +02:00
Griatch
72f4fedcbe Merge with develop and fix merge conflicts 2018-10-01 20:58:16 +02:00
Griatch
e413b1606a Merge branch 'master' into develop 2018-01-29 20:26:59 +01:00
Griatch
3a3f2bfe9e Further refactor when an extra endline is added with the FORCEDENDLINE option 2018-01-29 20:03:54 +01:00
Griatch
0ae76233ee Resolve merge conflicts 2018-01-29 00:16:30 +01:00
Griatch
587471c2b6 Change GA style to not include endline, add FORCEDENDLINE for clients requiring GA+endline. See #1395. 2018-01-28 23:15:38 +01:00
Griatch
2d606e8cfb Resolve merge conflicts 2018-01-27 22:01:43 +01:00
Griatch
9ed293b805 Rename protocol_keys ssl->telnet/ssl, websocket->webclient/websocket, ajax/comet->webclient/ajax. 2018-01-27 21:54:46 +01:00
Griatch
713766b33a Change log format, rename, join server/portal logs 2018-01-19 01:27:52 +01:00
Griatch
76555e6ca5 Resolve merge conflicts 2018-01-01 21:05:35 +01:00
Griatch
42f74dc553 Minor refactoring and stabilizing 2018-01-01 15:27:21 +01:00
Griatch
c8b1dfcd20 Allow options to partially update portal session, correctly relay late handshakes. 2017-12-31 23:16:16 +01:00
Vincent Le Goff
9605d66646 Add a little check in case ENCODINGS is empty 2017-12-12 20:59:55 +01:00
Vincent Le Goff
0acf0246c7 Simplify telnet edefault encoding 2017-12-12 20:51:16 +01:00
Vincent Le Goff
8f5a28455e Remove TELNET_ENCODING and set ENCODINGS[0] 2017-12-12 19:46:28 +01:00
Vincent Le Goff
abaf8d0a19 Add a setting to change telnet default encoding 2017-12-12 18:56:36 +01:00
Ryan Stein
cd21fb2396 Use Python 3's new super() convention. 2017-11-02 10:41:41 -04:00
Ryan Stein
b88c74a316 Convert the telnet protocols over for Py3. 2017-10-29 21:43:32 -04:00
Griatch
8a2e362b7c Make IDLE_TIMEOUT avoidable with account-lock.
Resolves #701. Check the Account-lock 'no_idle_disconnect before kicking an idle
session. This also means superusers will never be kicked. Move the
idle task to the Server to avoid lock imports in Portal. Make the
'lock' command also able to target Accounts. Also some other fixes.
2017-08-20 23:11:33 +02:00
Griatch
b278337172 Make PEP8 cleanup of line spaces and character distances as well as indents 2017-08-19 23:16:36 +02:00
Griatch
63eec3a659 Implement SUPPRESS-GO-AHEAD telnet option
With the current setup, the server will negotiate SUPPRESS-GO-AHEAD
as follows:
  Server sends WILL SUPPRESS-GO-AHEAD
  Client will then send or reply with DO/DONT SUPPRESS-GO-AHEAD
Evennia will abide by the instruction of the client, but defaults
to suppressing GA messages after every line.
2017-06-06 00:03:16 +02:00
Rachel Blackman
5808377085 Change IAC + GA to key off of MUDPROMPT @option
Several clients interpret IAC + GA as a linefeed, in order
to support MUDs that always end a line with them.  This causes
Evennia to spew empty lines everywhere if IAC + GA is always on.
2017-06-04 18:46:31 -07:00
Griatch
b269ef265e Add IAC+GA for telnet messaging, as per #1330. 2017-06-04 11:25:17 +02:00
BlauFeuer
ae2c2be8a1 Fix to color normalization end tag in Telnet.
Initial fix in #1243 does not account for empty string.
Addresses a potential problem in Telnet prompt similar to IndexError in telnet.py #1306
2017-04-19 06:40:51 +02:00
Griatch
bc1f5f0fc9 Fix to color normalization end tag in telnet. Resolves #1306. 2017-04-17 08:52:18 +02:00
BlauFeuer
78a6a2fc1a comment typo 2017-03-08 00:25:33 -05:00
BlauFeuer
d995e70827 Escape markup character on last line edge case
Also changes default reason argument type for simplicity and consistency with default reason on other similar methods.
2017-03-03 17:54:37 -05:00
BlauFeuer
0dfd474eff Markup change, whitespace, comment, docstring edit 2017-02-20 22:02:54 -05:00
Griatch
4699b38b31 Fix issue with option ansi/xterm256=False not correctly turning off colors. Change the NOMARKUP session option flag to NOCOLOR to better reflect its function. 2017-01-26 21:08:27 +01:00
Griatch
fa33464266 Typo fix. Formally Resolves #1122. 2016-11-26 02:30:49 +01:00
Griatch
b893e4b8f5 Add handling of line break concatenation to handle the input from certain multiline client dialects. 2016-11-26 01:32:10 +01:00
Griatch
76e114e33e Re-add some of the string processing logic to telnet processing. 2016-11-25 23:51:09 +01:00
Griatch
0805fa1cde Make telnet make better use of Twisted's in-build parsing, as per #1122. 2016-11-25 22:52:51 +01:00
Griatch
e6e61aa5e6 Minor tweaks to fix a portal traceback during handshake. 2016-09-13 12:31:47 +02:00
Griatch
bb577e563b Implements telnet NULL as a keepalive to keep compatibility with some legacy clients/servers. Resolves #1008. 2016-08-07 14:38:36 +02:00
Griatch
2d5e755362 Setting up a buffer for managing telnet character mode clients. Experimental. 2016-06-06 00:00:53 +02:00
Griatch
f12c754225 Added RAW and NOMARKUP protocol options to all protocols, settable with @option. Resolves #978. 2016-05-24 22:52:20 +02:00
Griatch
79786b7173 Added NOPKEEPALIVE option to the Telnet protocol, for turning on/off the NOP keepalive for clients too lame to even handle a standard telnet NOP instruction. Implements #977. 2016-05-24 22:33:57 +02:00
Griatch
8bf63885e2 Made some minor updates to the evmenu_login contrib, including adding a max number of password retries before disconnecting as well as fixing how client-exhoes are handled. Also made empty string return rather than 'b'. Also fixed an inconsistency in the Session.msg. 2016-05-22 20:49:44 +02:00
Griatch
41ad2aed5d Fixed the telnet WILL/WONT ECHO (the echo protocol option) to work as expected from the server side - by telling the client that the server WON'T echo, we are implicitly telling the client that IT should then do the echoing. This is a bit unintuitive and was defined in the wrong order. Fixed now. 2016-05-22 20:49:44 +02:00
Griatch
d5b3b59eb7 Made webclient aware of the server dropping (both websocket and AJAX). The server currently reacts to the websocket client dropping but not to the AJAX one (the latter forms ghost players) 2016-05-22 20:49:43 +02:00
Griatch
043be6dba4 Validating GMCP/MSDP protocol commands, first debugging run and fixes to make a few of the default inputfuncs work. Added INPUTDEBUG to the options dict, to echo input function errors directly. 2016-05-22 20:45:41 +02:00
Griatch
11ecdef7c8 Converted encoding setting to use protocol_flags rather than being stored on-session. Also renamed the 256 COLORS TTYPE setting to XTERM256 which is more accurate (and doesn't have a space) 2016-05-22 20:45:40 +02:00
Griatch
df674f687a Added GMCP-to-inputfunc name conversion as Module.Cmdname -> Module_CmdName. Also made Session.protocol_flags into a flat dict, by putting all TTYPE properties in the top level (the TTYPE key now only indicates if TTYPE has finished or not). Also started to convert the screenreader/enconding properties of the session into protocol_flags. (not fully working yet) 2016-05-22 20:45:40 +02:00
Griatch
2dbae4d8a9 First cleanup of SSL connection, not working yet. 2016-05-22 20:45:39 +02:00