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


C# Irc.IrcUser類代碼示例

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


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

示例1: IrcClient

        public IrcClient(Encoding encoding)
        {
            Reset();
            m_Users = new Dictionary<string, IrcUser>(StringComparer.InvariantCultureIgnoreCase);
            m_unbanTimers = new Dictionary<string, UnbanTimer>();

            m_me = new IrcUser(this);
            m_client = new Client(this);
            m_CommandHandler = new IrcCommandHandler(this);
            m_dcc = new Dcc.Dcc(this);
            protHandler = new IrcProtocolHandler(this, encoding);
        }
開發者ID:jaddie,項目名稱:DarkWaterSupportBot,代碼行數:12,代碼來源:IrcClient.cs

示例2: 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

示例3: OnUserParsed

 internal void OnUserParsed(IrcUser user)
 {
     AuthMgr.OnNewUser(user);
 }
開發者ID:jaddie,項目名稱:DarkWaterSupportBot,代碼行數:4,代碼來源:IrcClient.cs

示例4: GetOrCreateUser

        public IrcUser GetOrCreateUser(string mask)
        {
            IrcUser user = null;
            var nick = "";
            if (mask.IndexOf("!") > -1)
                nick = mask.Split('!')[0];
            else
                nick = mask;

            user = GetUser(nick);

            if (user == null)
            {
                user = new IrcUser(this, mask);
                OnUserEncountered(user);
            }
            else if (!user.IsParsed)
            {
                user.Parse(mask);
            }

            return user;
        }
開發者ID:jaddie,項目名稱:DarkWaterSupportBot,代碼行數:23,代碼來源:IrcClient.cs

示例5: OnUserEncountered

 protected internal virtual void OnUserEncountered(IrcUser user)
 {
     m_Users.Remove(user.Nick);
     m_Users.Add(user.Nick, user);
     if (AuthMgr != null && AutoResolveAuth)
     {
         // resolve
         AuthMgr.ResolveAuth(user);
     }
 }
開發者ID:jaddie,項目名稱:DarkWaterSupportBot,代碼行數:10,代碼來源:IrcClient.cs

示例6: OnCtcpReply

 /// <summary>
 /// Fires when the Client receives any kind of CTCP reply.
 /// </summary>
 /// <param name="user">The User who sent the text</param>
 /// <param name="channel">The Channel where it was sent (can be null)</param>
 /// <param name="reply">The reply type (such as VERSION)</param>
 /// <param name="args">The text which was sent in addition to the reply</param>
 protected virtual void OnCtcpReply(IrcUser user, IrcChannel chan, string reply, string args)
 {
 }
開發者ID:jaddie,項目名稱:DarkWaterSupportBot,代碼行數:10,代碼來源:IrcClient.cs

示例7: OnFlagDeleted

 /// <summary>
 /// Fires when a User deletes a Channel flag from another User.
 /// </summary>
 protected virtual void OnFlagDeleted(IrcUser user, IrcChannel chan, Privilege priv, IrcUser target)
 {
 }
開發者ID:jaddie,項目名稱:DarkWaterSupportBot,代碼行數:6,代碼來源:IrcClient.cs

示例8: TopicNotify

 internal void TopicNotify(IrcUser user, IrcChannel chan, string text, bool initial)
 {
     chan.TopicChangedNotify(user, text, initial);
     OnTopic(user, chan, text, initial);
 }
開發者ID:jaddie,項目名稱:DarkWaterSupportBot,代碼行數:5,代碼來源:IrcClient.cs

示例9: UsersAddedNotify

 internal void UsersAddedNotify(IrcChannel chan, IrcUser[] users)
 {
     chan.UsersAddedNotify(users);
     OnUsersAdded(chan, users);
 }
開發者ID:jaddie,項目名稱:DarkWaterSupportBot,代碼行數:5,代碼來源:IrcClient.cs

示例10: PartNotify

 internal void PartNotify(IrcUser user, IrcChannel chan, string reason)
 {
     OnPart(user, chan, reason);
     chan.UserPartedNotify(user, reason);
     user.DeleteChannel(chan.Name);
     CheckUserKnown(user);
 }
開發者ID:jaddie,項目名稱:DarkWaterSupportBot,代碼行數:7,代碼來源:IrcClient.cs

示例11: QuitNotify

 internal void QuitNotify(IrcUser user, string reason)
 {
     foreach (var chan in user.Channels.Values)
     {
         chan.UserLeftNotify(user, reason);
     }
     OnQuit(user, reason);
     m_Users.Remove(user.Nick);
     if (user == Me)
     {
         m_client.Disconnect();
     }
 }
開發者ID:jaddie,項目名稱:DarkWaterSupportBot,代碼行數:13,代碼來源:IrcClient.cs

示例12: 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

示例13: 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

示例14: CtcpReplyNotify

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

示例15: CheckUserKnown

 internal void CheckUserKnown(IrcUser user)
 {
     if (user.Channels.Count == 0)
     {
         OnUserDisappeared(user);
         m_Users.Remove(user.Nick);
     }
 }
開發者ID:jaddie,項目名稱:DarkWaterSupportBot,代碼行數:8,代碼來源:IrcClient.cs


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