Beispiel #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);
                    }
                }
            }
        }
Beispiel #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;
 }
Beispiel #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;
            }
        }
Beispiel #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);
                 }
             }
         }
     }
 }
Beispiel #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);
                    }
                }
            }
        }
Beispiel #6
0
 protected internal virtual void __evt_PART(NetworkChannelDataEventArgs args)
 {
     if (this.On_PART != null)
         this.On_PART(this, args);
 }
Beispiel #7
0
 protected internal virtual void __evt_INVITE(NetworkChannelDataEventArgs args)
 {
     if (this.On_INVITE != null)
         this.On_INVITE(this, args);
 }
Beispiel #8
0
 protected internal virtual void __evt_FinishChannelParseUser(NetworkChannelDataEventArgs args)
 {
     if (this.On_FinishChannelParseUser != null)
         this.On_FinishChannelParseUser(this, args);
 }
Beispiel #9
0
 protected internal virtual void __evt_ChannelInfo(NetworkChannelDataEventArgs args)
 {
     if (this.On_ChannelInfo != null)
         this.On_ChannelInfo(this, args);
 }