def GetMoniker(self): if self.__allianceMoniker is None: self.__allianceMoniker = moniker.GetAlliance() self.__allianceMonikerAllianceID = eve.session.allianceid self.__allianceMoniker.Bind() if self.__allianceMonikerAllianceID != eve.session.allianceid: if self.__allianceMoniker is not None: self.__allianceMoniker = None self.__allianceMoniker = moniker.GetAlliance() self.__allianceMonikerAllianceID = eve.session.allianceid self.__allianceMoniker.Bind() return self.__allianceMoniker
def AppAddToACL(self, vivoxChannelName): isCorpChannel = const.vcPrefixCorp in vivoxChannelName isAllianceChannel = const.vcPrefixAlliance in vivoxChannelName isFleetChannel = False for each in [const.vcPrefixFleet]: if each in vivoxChannelName: isFleetChannel = True prefixLen = len(each) break success = False if isCorpChannel: success = moniker.GetCorpRegistry().AddToVoiceChat( vivoxChannelName) elif isAllianceChannel: success = moniker.GetAlliance().AddToVoiceChat(vivoxChannelName) elif isFleetChannel: fleetid = vivoxChannelName[prefixLen:] success = moniker.GetFleet(fleetid).AddToVoiceChat( vivoxChannelName) if success: uthread.pool('vivox::JoinChannel', self._JoinChannel, vivoxChannelName) else: self.LogError('Could not add voice chat user to ACL.')