Beispiel #1
0
        private void OnJoin(IrcMessage message)
        {
            var handler = this.Joined;
            var e       = new IrcJoinEventArgs(message);

            if (this.IsSelf(e.Who.Nickname))
            {
                handler = this.SelfJoined;
            }
            this.RaiseEvent(handler, e);
        }
		private void Session_SelfJoined(object sender, IrcJoinEventArgs e)
		{
			var page = new ChatControl(ChatPageType.Chat, (IrcSession)sender, e.Channel);
			var state = App.Settings.Current.Windows.States[page.Id];
			if (state.IsDetached)
			{
				var window = new ChannelWindow(page);
				window.Show();
			}
			else
			{
				this.AddPage(page, true);
			}
		}
        private void Session_Joined(object sender, IrcJoinEventArgs e)
        {
            bool isIgnored = App.IsIgnoreMatch(e.Who, IgnoreActions.Join);

            if (!this.IsServer && this.Target.Equals(e.Channel))
            {
                if (!isIgnored)
                {
                    this.Write("Join", e.Message.Time, string.Format("{0} ({1}@{2}) has joined channel {3}",
                        e.Who.Nickname, e.Who.Username, e.Who.Hostname, this.Target.ToString()));
                }
                _nickList.Add(e.Who.Nickname);
            }
        }