mirror of
https://github.com/evennia/evennia.git
synced 2026-03-28 18:47:16 +01:00
Made basic telnet work again.
This commit is contained in:
parent
96ace8c75f
commit
c511263f63
4 changed files with 5 additions and 5 deletions
|
|
@ -370,9 +370,9 @@ class PortalSessionHandler(SessionHandler):
|
|||
print ("portalsessionhandler.data_out:", session, kwargs)
|
||||
for cmdname, (cmdargs, cmdkwargs) in kwargs.iteritems():
|
||||
try:
|
||||
getattr(session, "send_%s" % cmdname)(session, *cmdargs, **cmdkwargs)
|
||||
getattr(session, "send_%s" % cmdname)(*cmdargs, **cmdkwargs)
|
||||
except AttributeError:
|
||||
session.send_default(session, cmdname, *cmdargs, **cmdkwargs)
|
||||
session.send_default(cmdname, *cmdargs, **cmdkwargs)
|
||||
except Exception:
|
||||
log_trace()
|
||||
|
||||
|
|
|
|||
|
|
@ -289,6 +289,7 @@ class TelnetProtocol(Telnet, StatefulTelnetProtocol, Session):
|
|||
Note that it must be actively turned back on again!
|
||||
|
||||
"""
|
||||
print "telnet.send_text", args,kwargs
|
||||
if args:
|
||||
text = args[0]
|
||||
if text is None:
|
||||
|
|
|
|||
|
|
@ -355,8 +355,7 @@ class ServerSession(Session):
|
|||
text, args = text[0], list(text[1:])
|
||||
else:
|
||||
text, args = text, []
|
||||
print("kwargs", kwargs, kwargs.get("options", {}))
|
||||
options = kwargs.get("options", [None, {}])[1]
|
||||
options = kwargs.get("options", None) or {}
|
||||
raw = options.get("raw", False)
|
||||
strip_inlinefunc = options.get("strip_inlinefunc", False)
|
||||
if _INLINEFUNC_ENABLED and not raw:
|
||||
|
|
|
|||
|
|
@ -244,7 +244,7 @@ class ServerSessionHandler(SessionHandler):
|
|||
# validate all scripts
|
||||
_ScriptDB.objects.validate()
|
||||
self[sess.sessid] = sess
|
||||
self.data_in(sess, text=(CMD_LOGINSTART,))
|
||||
self.data_in(sess, text=[[CMD_LOGINSTART],{}])
|
||||
|
||||
def portal_session_sync(self, portalsessiondata):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue