示例#1
0
 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)
示例#2
0
 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)
示例#3
0
 def __onActionFailure(self, chatAction):
     error = errors.ChatActionError.create(chatAction)
     if error:
         g_messengerEvents.onServerErrorReceived(error)
示例#4
0
 def __onCommandInCooldown(self, chatAction):
     error = errors.CommandInCooldownError.create(chatAction)
     if error:
         g_messengerEvents.onServerErrorReceived(error)
示例#5
0
 def __onChatBanned(self, chatAction):
     error = errors.ChatBannedError.create(chatAction)
     if error:
         g_messengerEvents.onServerErrorReceived(error)
示例#6
0
 def __onCommandInCooldown(self, chatAction):
     error = errors.CommandInCooldownError.create(chatAction)
     if error:
         g_messengerEvents.onServerErrorReceived(error)
示例#7
0
 def __onChatBanned(self, chatAction):
     error = errors.ChatBannedError.create(chatAction)
     if error:
         g_messengerEvents.onServerErrorReceived(error)
示例#8
0
 def __onActionFailure(self, chatAction):
     error = errors.ChatActionError.create(chatAction)
     if error:
         g_messengerEvents.onServerErrorReceived(error)