當前位置: 首頁>>代碼示例>>C#>>正文


C# Irc.IrcChannel類代碼示例

本文整理匯總了C#中Squishy.Irc.IrcChannel的典型用法代碼示例。如果您正苦於以下問題:C# IrcChannel類的具體用法?C# IrcChannel怎麽用?C# IrcChannel使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


IrcChannel類屬於Squishy.Irc命名空間,在下文中一共展示了IrcChannel類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: IrcUser

 public IrcUser(IrcClient irc, string nick, IrcChannel chan)
     : this(irc)
 {
     m_nick = nick;
     m_comChans.Add(chan.Name, chan);
     irc.OnUserEncountered(this);
 }
開發者ID:jaddie,項目名稱:Werewolves-Irc-Bot,代碼行數:7,代碼來源:IrcUser.cs

示例2: UnbanTimer

 public UnbanTimer(IrcChannel chan, string mask, TimeSpan timeout)
 {
     Channel = chan;
     Mask = mask;
     m_timer = new Timer(timeout.TotalMilliseconds);
     m_timer.Elapsed += OnTick;
     m_timer.AutoReset = false;
     chan.AddUnbanTimer(this);
     m_timer.Start();
 }
開發者ID:jaddie,項目名稱:WCell-Utility-Bot,代碼行數:10,代碼來源:UnbanTimer.cs

示例3: Vote

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="voteQuestion">The string of the vote.</param>
        /// <param name="channel">The channel where the vote takes place.</param>
        /// <param name="lifeSpan">If null, the vote lasts indefinitely. Else sets the time the vote lasts before ending (seconds)</param>
        public Vote(string voteQuestion, IrcChannel channel, int lifeSpan)
        {
            m_Vote = voteQuestion;
            m_Chan = channel;
            m_CreationTime = DateTime.Now;

            m_Timer = new Timer(lifeSpan * 1000);
            m_Timer.AutoReset = false;
            m_Timer.Start();
            m_Timer.Elapsed += m_Timer_Elapsed;
        }
開發者ID:WCell,項目名稱:WCell-IrcAddon,代碼行數:17,代碼來源:Vote.cs

示例4: AutoVoiceUser

 public AutoVoiceUser(IrcUser user,IrcChannel channel)
 {
     User = user;
     Channel = channel;
     _voiceTimer.Elapsed += delegate
                               {
                                   if(!user.Modes.Contains("v"))
                                   user.IrcClient.CommandHandler.Mode(Channel, "+v", User);
                                   _voiceTimer.Stop();
                               };
     _voiceTimer.Start();
 }
開發者ID:WCell,項目名稱:WCell-UtilityBot,代碼行數:12,代碼來源:AutoVoiceUser.cs

示例5: IsOn

 /// <summary>
 /// Indicates wether or not this User is on the specified channel.
 /// </summary>
 public bool IsOn(IrcChannel chan)
 {
     return IsOn(chan.Name);
 }
開發者ID:jaddie,項目名稱:Werewolves-Irc-Bot,代碼行數:7,代碼來源:IrcUser.cs

示例6: OnCtcpRequest

 /// <summary>
 /// Fires when the Client receives any kind of CTCP request. 
 /// Automatically replies to the VERSION request with the content of the Version variable
 /// if not overridden.
 /// </summary>
 /// <param name="user">The User who sent the text</param>
 /// <param name="chan">The Channel where it was sent (can be null)</param>
 /// <param name="request">The request type (such as VERSION)</param>
 /// <param name="args">The text which was sent in addition to the request</param>
 protected virtual void OnCtcpRequest(IrcUser user, IrcChannel chan, string request, string args)
 {
     if (request.ToUpper() == "VERSION" && Version != "")
         CommandHandler.CtcpReply(user.Nick, "VERSION", Version);
 }
開發者ID:jaddie,項目名稱:DarkWaterSupportBot,代碼行數:14,代碼來源:IrcClient.cs

示例7: OnChannelMsg

 /// <summary>
 /// Fires when the Client receives a PRIVMSG which was directed to a Channel.
 /// </summary>
 protected virtual void OnChannelMsg(IrcUser user, IrcChannel chan, StringStream text)
 {
 }
開發者ID:jaddie,項目名稱:DarkWaterSupportBot,代碼行數:6,代碼來源:IrcClient.cs

示例8: OnCannotJoin

 protected virtual void OnCannotJoin(IrcChannel chan, string reason)
 {
 }
開發者ID:jaddie,項目名稱:DarkWaterSupportBot,代碼行數:3,代碼來源:IrcClient.cs

示例9: OnBanListComplete

 /// <summary>
 /// Fires when the BanList for a Channel has been sent completely.
 /// </summary>
 protected virtual void OnBanListComplete(IrcChannel chan)
 {
 }
開發者ID:jaddie,項目名稱:DarkWaterSupportBot,代碼行數:6,代碼來源:IrcClient.cs

示例10: FlagDeletedNotify

 internal void FlagDeletedNotify(IrcUser user, IrcChannel chan, Privilege priv, IrcUser target)
 {
     chan.FlagDeletedNotify(user, priv, target);
     OnFlagDeleted(user, chan, priv, target);
 }
開發者ID:jaddie,項目名稱:DarkWaterSupportBot,代碼行數:5,代碼來源:IrcClient.cs

示例11: CtcpRequestNotify

 internal void CtcpRequestNotify(IrcUser user, IrcChannel chan, string request, string text)
 {
     if (request.ToUpper() == "DCC" && chan == null)
     {
         Dcc.Handle(user, text);
     }
     OnCtcpRequest(user, chan, request, text);
 }
開發者ID:jaddie,項目名稱:DarkWaterSupportBot,代碼行數:8,代碼來源:IrcClient.cs

示例12: CtcpReplyNotify

 internal void CtcpReplyNotify(IrcUser user, IrcChannel chan, string reply, string args)
 {
     OnCtcpReply(user, chan, reply, args);
 }
開發者ID:jaddie,項目名稱:DarkWaterSupportBot,代碼行數:4,代碼來源:IrcClient.cs

示例13: ChannelMsgNotify

 internal void ChannelMsgNotify(IrcUser user, IrcChannel chan, StringStream text)
 {
     chan.MsgReceivedNotify(user, text);
     OnChannelMsg(user, chan, text);
 }
開發者ID:jaddie,項目名稱:DarkWaterSupportBot,代碼行數:5,代碼來源:IrcClient.cs

示例14: ChanCreationTimeNotify

 internal virtual void ChanCreationTimeNotify(IrcChannel chan, DateTime creationTime)
 {
     chan.ChanCreationTimeSentNotify(creationTime);
     OnChanCreationTime(chan, creationTime);
 }
開發者ID:jaddie,項目名稱:DarkWaterSupportBot,代碼行數:5,代碼來源:IrcClient.cs

示例15: CannotJoinNotify

 internal void CannotJoinNotify(IrcChannel channel, string reason)
 {
     OnCannotJoin(channel, reason);
 }
開發者ID:jaddie,項目名稱:DarkWaterSupportBot,代碼行數:4,代碼來源:IrcClient.cs


注:本文中的Squishy.Irc.IrcChannel類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。