Made property assignment go to Typeclass if that property were already defined on typeclass; otherwise relegate to dbobj as before. This fixes issues with property assignments on the Typeclass level. There are no obvious regressions in testing this but it's something to keep an eye out for in case there are any unexpected side effects.

This commit is contained in:
Griatch 2014-09-30 14:12:58 +02:00
parent 348ff0b5f4
commit 5b38f27554
2 changed files with 18 additions and 15 deletions

View file

@ -242,13 +242,12 @@ class Command(object):
if hasattr(to_obj, "sessid"):
# this is the case when to_obj is e.g. a Character
toobj_sessions = to_obj.sessid.get()
# If to_obj has more than one session MULTISESSION_MODE=3
# we need to send to every session.
# we need to send to every session.
#(setting it to None, does it)
if len(toobj_sessions)>1:
session_tosend=None
else:
session_tosend = None
if len(toobj_sessions) == 1:
session_tosend=toobj_sessions[0]
sessid = all_sessions and None or session_tosend
elif to_obj == self.caller: