private void Session_UserQuit(object sender, IrcQuitEventArgs e) { this.BeginInvoke(() => { if (this.IsChannel && this.IsPresent(e.Who.Nickname)) { this.Write("Quit", string.Format("{0} has quit ({1})", e.Who.Nickname, e.Text)); this.RemoveNick(e.Who.Nickname); } }); }
private void Session_UserQuit(object sender, IrcQuitEventArgs e) { bool isIgnored = App.IsIgnoreMatch(e.Who, IgnoreActions.Quit); if (this.IsChannel && _nickList.Contains(e.Who.Nickname)) { if (!isIgnored) { this.Write("Quit", e.Message.Time, string.Format("{0} has quit ({1})", e.Who.Nickname, e.Text)); } _nickList.Remove(e.Who.Nickname); } }
private void Session_UserQuit(object sender, IrcQuitEventArgs e) { bool isIgnored = App.IsIgnoreMatch(e.Who, IgnoreActions.Quit); if (this.IsChannel && this.IsPresent(e.Who.Nickname)) { if (!isIgnored) { this.Write("Quit", string.Format("{0} has quit ({1})", e.Who.Nickname, e.Text)); } this.RemoveNick(e.Who.Nickname); } }