def setSCCustom(self, msgIndex):
     if base.localAvatar.isIgnored(self.doId):
         return
     chatString = SCDecoders.decodeSCCustomMsg(msgIndex)
     if chatString:
         self.setChatAbsolute(chatString, CFSpeech | CFQuicktalker | CFTimeout)
     base.talkAssistant.receiveOpenSpeedChat(TalkAssistant.SPEEDCHAT_CUSTOM, msgIndex, self.doId)
Пример #2
0
    def setWhisperSCCustomFrom(self, fromId, msgIndex):
        """
        Receive and decode the SC message.
        """
        handle = base.cr.identifyAvatar(fromId)
        if handle == None:
            return

        if not self._isValidWhisperSource(handle):
            self.notify.warning('displayWhisper from non-toon %s' % fromId)
            return

        # new ignore list is handled by the Friends manager's, there are now two types, avatar and player.
        if base.cr.avatarFriendsManager.checkIgnored(fromId):
           # We're ignoring this jerk.
           self.d_setWhisperIgnored(fromId)
           return

        if fromId in self.ignoreList:
            # We're ignoring this jerk.
            self.d_setWhisperIgnored(fromId)
            return

        chatString = SCDecoders.decodeSCCustomMsg(msgIndex)
        if chatString:
            self.displayWhisper(fromId, chatString, WhisperPopup.WTQuickTalker)
            base.talkAssistant.receiveAvatarWhisperSpeedChat(TalkAssistant.SPEEDCHAT_CUSTOM, msgIndex, fromId)
Пример #3
0
 def setSCCustom(self, msgIndex):
     if base.localAvatar.isIgnored(self.doId):
         return
     chatString = SCDecoders.decodeSCCustomMsg(msgIndex)
     if chatString:
         self.setChatAbsolute(chatString,
                              CFSpeech | CFQuicktalker | CFTimeout)
 def setSCCustom(self, msgIndex):
     if base.cr.avatarFriendsManager.checkIgnored(self.doId):
         return
     if self.doId in base.localAvatar.ignoreList:
         return
     chatString = SCDecoders.decodeSCCustomMsg(msgIndex)
     if chatString:
         self.setChatAbsolute(chatString, CFSpeech | CFQuicktalker | CFTimeout)
     base.talkAssistant.receiveOpenSpeedChat(TalkAssistant.SPEEDCHAT_CUSTOM, msgIndex, self.doId)
Пример #5
0
 def translateMessage(self, messageType, indexArray, senderDISLName):
     if messageType == SpeedchatRelayGlobals.NORMAL:
         return SCDecoders.decodeSCStaticTextMsg(indexArray[0])
     elif messageType == SpeedchatRelayGlobals.CUSTOM:
         return SCDecoders.decodeSCCustomMsg(indexArray[0])
     elif messageType == SpeedchatRelayGlobals.EMOTE:
         return SCDecoders.decodeSCEmoteWhisperMsg(indexArray[0],
                                                   senderDISLName)
     else:
         return None
Пример #6
0
 def setWhisperSCCustomFrom(self, fromId, msgIndex):
     handle = base.cr.identifyAvatar(fromId)
     if handle == None:
         return
     if not self._isValidWhisperSource(handle):
         self.notify.warning('displayWhisper from non-toon %s' % fromId)
         return
     if base.localAvatar.isIgnored(fromId):
         return
     chatString = SCDecoders.decodeSCCustomMsg(msgIndex)
     if chatString:
         self.displayWhisper(fromId, chatString, WhisperPopup.WTNormal)
Пример #7
0
 def setWhisperSCCustomFrom(self, fromId, msgIndex):
     handle = base.cr.identifyAvatar(fromId)
     if handle == None:
         return
     if not self._isValidWhisperSource(handle):
         self.notify.warning('displayWhisper from non-toon %s' % fromId)
         return
     if base.localAvatar.isIgnored(fromId):
         return
     chatString = SCDecoders.decodeSCCustomMsg(msgIndex)
     if chatString:
         self.displayWhisper(fromId, chatString, WhisperPopup.WTNormal)
 def setWhisperSCCustomFrom(self, fromId, msgIndex):
     handle = base.cr.identifyAvatar(fromId)
     if handle == None:
         return
     if not self._isValidWhisperSource(handle):
         self.notify.warning('displayWhisper from non-toon %s' % fromId)
         return
     if base.localAvatar.isIgnored(fromId):
         return
     chatString = SCDecoders.decodeSCCustomMsg(msgIndex)
     if chatString:
         self.displayWhisper(fromId, chatString, WTQuickTalker)
         base.talkAssistant.receiveAvatarWhisperSpeedChat(TalkAssistant.SPEEDCHAT_CUSTOM, msgIndex, fromId)
     return
Пример #9
0
    def setSCCustom(self, msgIndex):
        """
        Receive and decode the SC message
        """
        # new ignore list is handled by the Friends manager's, there are now two types, avatar and player.
        if base.cr.avatarFriendsManager.checkIgnored(self.doId):
            # We're ignoring this jerk.
            return

        if self.doId in base.localAvatar.ignoreList:
            # We're ignoring this jerk.
            return

        chatString = SCDecoders.decodeSCCustomMsg(msgIndex)
        if chatString:
            self.setChatAbsolute(chatString,
                                 CFSpeech | CFQuicktalker | CFTimeout)
        base.talkAssistant.receiveOpenSpeedChat(TalkAssistant.SPEEDCHAT_CUSTOM, msgIndex, self.doId)
 def setWhisperSCCustomFrom(self, fromId, msgIndex):
     handle = base.cr.identifyAvatar(fromId)
     if handle == None:
         return
     if not self._isValidWhisperSource(handle):
         self.notify.warning('displayWhisper from non-toon %s' % fromId)
         return
     if base.cr.avatarFriendsManager.checkIgnored(fromId):
         self.d_setWhisperIgnored(fromId)
         return
     if fromId in self.ignoreList:
         self.d_setWhisperIgnored(fromId)
         return
     chatString = SCDecoders.decodeSCCustomMsg(msgIndex)
     if chatString:
         self.displayWhisper(fromId, chatString, WTQuickTalker)
         base.talkAssistant.receiveAvatarWhisperSpeedChat(TalkAssistant.SPEEDCHAT_CUSTOM, msgIndex, fromId)
     return
 def setWhisperSCCustomFrom(self, fromId, msgIndex):
     handle = base.cr.identifyAvatar(fromId)
     if handle == None:
         return
     if not self._isValidWhisperSource(handle):
         self.notify.warning("displayWhisper from non-toon %s" % fromId)
         return
     if base.cr.avatarFriendsManager.checkIgnored(fromId):
         self.d_setWhisperIgnored(fromId)
         return
     if fromId in self.ignoreList:
         self.d_setWhisperIgnored(fromId)
         return
     chatString = SCDecoders.decodeSCCustomMsg(msgIndex)
     if chatString:
         self.displayWhisper(fromId, chatString, WhisperPopup.WTQuickTalker)
         base.talkAssistant.receiveAvatarWhisperSpeedChat(TalkAssistant.SPEEDCHAT_CUSTOM, msgIndex, fromId)
     return
Пример #12
0
 def setSCCustom(self, msgIndex):
     if base.localAvatar.isIgnored(self.doId):
         return
     chatString = SCDecoders.decodeSCCustomMsg(msgIndex)
     if chatString:
         self.setChatAbsolute(chatString, CFSpeech | CFQuicktalker | CFTimeout)