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); }
public void RequestPersistentOps(string channel, IChannelOperator requester, string token) { this.RequestPersistentOps(channel, requester, token, false); }