Various cleanups and fixes found during refurbishing the unittest framework (not pushed yet)
This commit is contained in:
parent
6c20987d9a
commit
9f6e3de637
4 changed files with 20 additions and 17 deletions
|
|
@ -653,7 +653,8 @@ class ObjectDB(TypedObject):
|
|||
be used by the protocol.
|
||||
"""
|
||||
if _GA(self, 'player'):
|
||||
_GA(_GA(self, 'player'), "msg")(message, from_obj=from_obj, data=data)
|
||||
# note that we check the typeclass' msg, otherwise one couldn't overload it.
|
||||
_GA(_GA(self, 'player'), "typeclass").msg(message, from_obj=from_obj, data=data)
|
||||
|
||||
def emit_to(self, message, from_obj=None, data=None):
|
||||
"Deprecated. Alias for msg"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue