Changed msg() to work with **kwargs rather than data dicts. Still not fully updated the portal side (also remember that keywords let through to the portal must not contain dbobjs, since the portal has no connection to the database).

This commit is contained in:
Griatch 2013-09-14 09:10:31 +02:00
parent 1e96b13920
commit 4a5de04956
11 changed files with 59 additions and 34 deletions

View file

@ -183,11 +183,11 @@ class ServerSession(Session):
self.update_session_counters()
execute_cmd = data_in # alias
def data_out(self, msg, data=None):
def data_out(self, text=None, **kwargs):
"""
Send Evennia -> Player
"""
self.sessionhandler.data_out(self, msg, data)
self.sessionhandler.data_out(self, text=text, **kwargs)
def oob_data_in(self, data):
"""
@ -276,9 +276,9 @@ class ServerSession(Session):
#def disconnect(self):
# "alias for session_disconnect"
# self.session_disconnect()
def msg(self, string='', data=None):
def msg(self, text='', **kwargs):
"alias for at_data_out"
self.data_out(string, data=data)
self.data_out(text=text, **kwargs)
# Dummy API hooks for use during non-loggedin operation