Changed object.msg() to relay directly to connected session rather than via the player.msg() method.

This commit is contained in:
Griatch 2013-09-22 11:39:24 +02:00
parent dd27b4b77d
commit 4659ddbfc3
7 changed files with 37 additions and 56 deletions

View file

@ -164,7 +164,7 @@ class ServerSession(Session):
def data_in(self, text=None, **kwargs):
"""
Send Player->Evennia. This will in effect
Send User->Evennia. This will in effect
execute a command string on the server.
Eventual extra data moves through oob_data_in
"""
@ -185,14 +185,13 @@ class ServerSession(Session):
def data_out(self, text=None, **kwargs):
"""
Send Evennia -> Player
Send Evennia -> User
"""
self.sessionhandler.data_out(self, text=text, **kwargs)
def __eq__(self, other):
return self.address == other.address
def __str__(self):
"""
String representation of the user session class. We use