def _onResponseFailure(self, ids, args): if super(VOIPChatProvider, self)._onResponseFailure(ids, args): error = errors.createVOIPError(args) if error: g_messengerEvents.onServerErrorReceived(error) else: LOG_WARNING('Error is not resolved on the client', ids, args)
def doAction(self, actionID, args = None, response = False, skipCoolDown = False): player = BigWorld.player() (success, reqID,) = (False, 0) if player: if self.__coolDown.isInProcess(actionID): if not skipCoolDown: g_messengerEvents.onServerErrorReceived(createCoolDownError(actionID)) elif response: reqID = self.__idGen.next() player.base.messenger_onActionByClient_chat2(actionID, reqID, args or messageArgs()) success = True else: LOG_ERROR('Player is not defined') return (success, reqID)
def __onActionFailure(self, chatAction): error = errors.ChatActionError.create(chatAction) if error: g_messengerEvents.onServerErrorReceived(error)
def __onCommandInCooldown(self, chatAction): error = errors.CommandInCooldownError.create(chatAction) if error: g_messengerEvents.onServerErrorReceived(error)
def __onChatBanned(self, chatAction): error = errors.ChatBannedError.create(chatAction) if error: g_messengerEvents.onServerErrorReceived(error)