예제 #1
0
        protected override void __evt_PART(NetworkChannelDataEventArgs args)
        {
            if (args.ChannelName == Configuration.System.DebugChan && this.instance != Instance.PrimaryInstance)
            {
                return;
            }
            Channel channel = Core.GetChannel(args.ChannelName);

            if (channel != null)
            {
                foreach (Module module in ExtensionHandler.ExtensionList)
                {
                    if (!module.IsWorking)
                    {
                        continue;
                    }

                    try
                    {
                        module.Hook_Part(channel, args.SourceInfo);
                    }
                    catch (Exception fail)
                    {
                        Syslog.Log("MODULE: exception at Hook_Part in " + module.Name, true);
                        Core.HandleException(fail);
                    }
                }
            }
        }
예제 #2
0
 public override void __evt_FinishChannelParseUser(NetworkChannelDataEventArgs args)
 {
     Channel channel = Core.GetChannel(args.ChannelName);
     Syslog.DebugLog("Finished parsing of user list for channel: " + args.ChannelName);
     if (channel != null)
         channel.HasFreshUserList = true;
 }
예제 #3
0
        protected override void __evt_FinishChannelParseUser(NetworkChannelDataEventArgs args)
        {
            Channel channel = Core.GetChannel(args.ChannelName);

            Syslog.DebugLog("Finished parsing of user list for channel: " + args.ChannelName);
            if (channel != null)
            {
                channel.HasFreshUserList = true;
            }
        }
예제 #4
0
 public override void __evt_PART(NetworkChannelDataEventArgs args)
 {
     if (args.ChannelName == Configuration.System.DebugChan && this.instance != Instance.PrimaryInstance)
         return;
     Channel channel = Core.GetChannel(args.ChannelName);
     if (channel != null)
     {
         lock (ExtensionHandler.Extensions)
         {
             foreach (Module module in ExtensionHandler.Extensions)
             {
                 if (!module.IsWorking)
                 {
                     continue;
                 }
                 try
                 {
                     module.Hook_Part(channel, args.SourceInfo);
                 }
                 catch (Exception fail)
                 {
                     Core.HandleException(fail);
                 }
             }
         }
     }
 }
예제 #5
0
        protected override void __evt_PART(NetworkChannelDataEventArgs args)
        {
            if (args.ChannelName == Configuration.System.DebugChan && this.instance != Instance.PrimaryInstance)
                return;
            Channel channel = Core.GetChannel(args.ChannelName);
            if (channel != null)
            {
                foreach (Module module in ExtensionHandler.ExtensionList)
                {
                    if (!module.IsWorking)
                        continue;

                    try
                    {
                        module.Hook_Part(channel, args.SourceInfo);
                    }
                    catch (Exception fail)
                    {
                        Syslog.Log("MODULE: exception at Hook_Part in " + module.Name, true);
                        Core.HandleException(fail);
                    }
                }
            }
        }
예제 #6
0
 protected internal virtual void __evt_PART(NetworkChannelDataEventArgs args)
 {
     if (this.On_PART != null)
         this.On_PART(this, args);
 }
예제 #7
0
 protected internal virtual void __evt_INVITE(NetworkChannelDataEventArgs args)
 {
     if (this.On_INVITE != null)
         this.On_INVITE(this, args);
 }
예제 #8
0
 protected internal virtual void __evt_FinishChannelParseUser(NetworkChannelDataEventArgs args)
 {
     if (this.On_FinishChannelParseUser != null)
         this.On_FinishChannelParseUser(this, args);
 }
예제 #9
0
 protected internal virtual void __evt_ChannelInfo(NetworkChannelDataEventArgs args)
 {
     if (this.On_ChannelInfo != null)
         this.On_ChannelInfo(this, args);
 }