def connect(self, scope): if scope != MESSENGER_SCOPE.BATTLE: self.__arenaChat.leave() if not self.__isConnected: self.__isConnected = True self.__voipCtrl.start() g_messengerEvents.onPluginConnected(PROTO_TYPE.BW_CHAT2)
def connect(self, scope): if not self.__isConnected: self.__isConnected = True self._addChatActionsListeners() self.clanListener.start() self.__isConnected = True g_messengerEvents.onPluginConnected(PROTO_TYPE.BW) self.channels.switch(scope) self.users.switch(scope) self.serviceChannel.switch(scope)
def __onPluginConnected(self, protoType): if protoType == PROTO_TYPE.MIGRATION: return if g_settings.server.useToShowContacts(protoType): g_messengerEvents.onPluginConnected(PROTO_TYPE.MIGRATION)
def __handleLogin(self): g_logOutput.debug(CLIENT_LOG_AREA.LOGIN, 'Client is login') self.__connectionsInfo.clear() self.__reqTokenBackOff.reset() g_messengerEvents.onPluginConnected(PROTO_TYPE.XMPP)
def connect(self, scope): if scope != MESSENGER_SCOPE.BATTLE: self.__arenaChat.leave() if not self.__isConnected: self.__isConnected = True g_messengerEvents.onPluginConnected(PROTO_TYPE.BW_CHAT2)