コード例 #1
0
ファイル: ChatControl_Events.cs プロジェクト: neem/Nilas
 private void Session_UserQuit(object sender, IrcQuitEventArgs e)
 {
     this.BeginInvoke(() =>
         {
             if (this.IsChannel && this.IsPresent(e.Who.Nickname))
             {
                 this.Write("Quit", string.Format("{0} has quit ({1})", e.Who.Nickname, e.Text));
                 this.RemoveNick(e.Who.Nickname);
             }
         });
 }
コード例 #2
0
        private void Session_UserQuit(object sender, IrcQuitEventArgs e)
        {
            bool isIgnored = App.IsIgnoreMatch(e.Who, IgnoreActions.Quit);

            if (this.IsChannel && _nickList.Contains(e.Who.Nickname))
            {
                if (!isIgnored)
                {
                    this.Write("Quit", e.Message.Time, string.Format("{0} has quit ({1})", e.Who.Nickname, e.Text));
                }
                _nickList.Remove(e.Who.Nickname);
            }
        }
コード例 #3
0
ファイル: ChatControl_Events.cs プロジェクト: cyruslopez/Floe
        private void Session_UserQuit(object sender, IrcQuitEventArgs e)
        {
            bool isIgnored = App.IsIgnoreMatch(e.Who, IgnoreActions.Quit);

            if (this.IsChannel && this.IsPresent(e.Who.Nickname))
            {
                if (!isIgnored)
                {
                    this.Write("Quit", string.Format("{0} has quit ({1})", e.Who.Nickname, e.Text));
                }
                this.RemoveNick(e.Who.Nickname);
            }
        }