Exemplo n.º 1
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);
			}
		}
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 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", 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);
            }
        }
Exemplo n.º 4
0
		private void Session_SelfParted(object sender, IrcPartEventArgs e)
		{
			if (e.Channel.Equals(this.Page.Target))
			{
				this.Close();
			}
		}