• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Irc.IrcUser类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Squishy.Irc.IrcUser的典型用法代码示例。如果您正苦于以下问题:C# IrcUser类的具体用法?C# IrcUser怎么用?C# IrcUser使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IrcUser类属于Squishy.Irc命名空间,在下文中一共展示了IrcUser类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: ChannelMsgNotify

 internal void ChannelMsgNotify(IrcUser user, IrcChannel chan, StringStream text)
 {
     chan.MsgReceivedNotify(user, text);
     OnChannelMsg(user, chan, text);
 }
开发者ID:jaddie,项目名称:DarkWaterSupportBot,代码行数:5,代码来源:IrcClient.cs


示例17: AuthNotify

 internal void AuthNotify(IrcUser user)
 {
     var evt = AuthResolved;
     if (evt != null)
     {
         evt(user);
     }
 }
开发者ID:jaddie,项目名称:DarkWaterSupportBot,代码行数:8,代码来源:IrcClient.cs


示例18: TriggersCommand

 public virtual bool TriggersCommand(IrcUser user, IrcChannel chan, StringStream input)
 {
     return input.ConsumeNext(CommandHandler.RemoteCommandPrefix);
 }
开发者ID:jaddie,项目名称:DarkWaterSupportBot,代码行数:4,代码来源:IrcClient.cs


示例19: QueryMsgNotify

 internal void QueryMsgNotify(IrcUser user, StringStream text)
 {
     OnQueryMsg(user, text);
 }
开发者ID:jaddie,项目名称:DarkWaterSupportBot,代码行数:4,代码来源:IrcClient.cs


示例20: InviteNotify

 internal void InviteNotify(IrcUser user, string chan)
 {
     OnInvite(user, chan);
 }
开发者ID:jaddie,项目名称:DarkWaterSupportBot,代码行数:4,代码来源:IrcClient.cs



注:本文中的Squishy.Irc.IrcUser类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Commands.CmdTrigger类代码示例发布时间:2022-05-26
下一篇:
C# Irc.IrcChannel类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap