private void Session_SelfParted(object sender, IrcPartEventArgs e) { var page = this.FindPage(ChatPageType.Chat, (IrcSession)sender, e.Channel); if (page != null) { this.RemovePage(page); } }
private void OnPart(IrcMessage message) { var handler = this.Parted; var e = new IrcPartEventArgs(message); if (this.IsSelf(e.Who.Nickname)) { handler = this.SelfParted; } this.RaiseEvent(handler, e); }
private void Session_Parted(object sender, IrcPartEventArgs e) { bool isIgnored = App.IsIgnoreMatch(e.Who, IgnoreActions.Part); if (!this.IsServer && this.Target.Equals(e.Channel)) { if (!isIgnored) { this.Write("Part", e.Message.Time, string.Format("{0} ({1}@{2}) has left channel {3}", e.Who.Nickname, e.Who.Username, e.Who.Hostname, this.Target.ToString())); } _nickList.Remove(e.Who.Nickname); } }
private void Session_SelfParted(object sender, IrcPartEventArgs e) { if (e.Channel.Equals(this.Page.Target)) { this.Close(); } }