Poodletooth-iLand/otp/avatar/AvatarHandle.py

17 lines
535 B
Python
Raw Normal View History

2015-03-03 16:10:12 -06:00
class AvatarHandle:
dclassName = 'AvatarHandle'
def getName(self):
return ''
def isOnline(self):
return False
def isUnderstandable(self):
return True
def setTalkWhisper(self, fromAV, fromAC, avatarName, chat, mods, flags):
2015-05-24 11:04:49 -05:00
if not base.cr.chatAgent.verifyMessage(chat):
return
2015-03-03 16:10:12 -06:00
newText, scrubbed = localAvatar.scrubTalk(chat, mods)
base.talkAssistant.receiveWhisperTalk(fromAV, avatarName, fromAC, None, self.avatarId, self.getName(), newText, scrubbed)