Added comprehensive encoding handling to support both player-level encoding choices as well as global multiple encodings through the settings file.

This commit is contained in:
Griatch 2010-10-03 19:11:43 +00:00
parent 7904916dba
commit 745df8356f
5 changed files with 69 additions and 34 deletions

View file

@ -505,15 +505,9 @@ class ObjectDB(TypedObject):
"""
# This is an important function that must always work.
# we use a different __getattribute__ to avoid recursive loops.
if from_obj:
try:
from_obj.at_msg_send(message, self)
except Exception:
pass
if self.at_msg_receive(message, from_obj):
for session in object.__getattribute__(self, 'sessions'):
session.msg(message, markup)
if object.__getattribute__(self, 'player'):
object.__getattribute__(self, 'player').msg(message, markup)
def emit_to(self, message, from_obj=None):
"Deprecated. Alias for msg"