Пример #1
0
        public void RequestPersistentOps(string channel, IChannelOperator requester, string token, bool priority)
        {
            bool existingOps = false;

            lock (this.channelStatus)
            {
                if (!this.channelStatus.ContainsKey(channel))
                {
                    return;
                }

                this.channelStatus[channel].PersistentChanops.Add(token, requester);

                existingOps = this.channelStatus[channel].BotOpsHeld;
            }

            if (existingOps)
            {
                // We're already opped, so fire this event immediately
                requester.OnChannelOperatorGranted(this, new OppedEventArgs(channel, token, this, this.ircClient));
            }

            this.CheckRestrictivity(channel, priority);
        }
Пример #2
0
 public void RequestPersistentOps(string channel, IChannelOperator requester, string token)
 {
     this.RequestPersistentOps(channel, requester, token, false);
 }