예제 #1
0
        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", 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);
            }
        }
예제 #2
0
        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);
            }
        }