示例#1
0
 private void Session_SelfParted(object sender, IrcPartEventArgs e)
 {
     if (e.Channel.Equals(this.Page.Target))
     {
         this.Close();
     }
 }
示例#2
0
        private void Session_SelfParted(object sender, IrcPartEventArgs e)
        {
            var page = this.FindPage(ChatPageType.Chat, (IrcSession)sender, e.Channel);

            if (page != null)
            {
                this.RemovePage(page);
            }
        }
示例#3
0
        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", 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);
            }
        }