Exemple #1
0
        protected override void __evt_QUIT(NetworkGenericDataEventArgs args)
        {
            foreach (Module module in ExtensionHandler.ExtensionList)
            {
                if (!module.IsWorking)
                {
                    continue;
                }

                try
                {
                    module.Hook_Quit(args.SourceInfo, args.Message);
                }
                catch (Exception fail)
                {
                    Syslog.Log("MODULE: exception at Hook_Quit in " + module.Name, true);
                    Core.HandleException(fail);
                }
            }
            foreach (Channel channel in instance.ChannelList)
            {
                if (channel.ContainsUser(args.SourceInfo.Nick))
                {
                    foreach (Module module in ExtensionHandler.ExtensionList)
                    {
                        if (!module.IsWorking)
                        {
                            continue;
                        }

                        try
                        {
                            module.Hook_ChannelQuit(channel, args.SourceInfo, args.Message);
                        }
                        catch (Exception fail)
                        {
                            Syslog.Log("MODULE: exception at Hook_ChannelQuit in " + module.Name, true);
                            Core.HandleException(fail);
                        }
                    }
                }
            }
        }
Exemple #2
0
 public override void __evt_QUIT(NetworkGenericDataEventArgs args)
 {
     lock (ExtensionHandler.Extensions)
     {
         foreach (Module module in ExtensionHandler.Extensions)
         {
             if (!module.IsWorking)
             {
                 continue;
             }
             try
             {
                 module.Hook_Quit(args.SourceInfo, args.Message);
             }
             catch (Exception fail)
             {
                 Syslog.Log("MODULE: exception at Hook_Quit in " + module.Name, true);
                 Core.HandleException(fail);
             }
         }
     }
 }
Exemple #3
0
        protected override void __evt_QUIT(NetworkGenericDataEventArgs args)
        {
            foreach (Module module in ExtensionHandler.ExtensionList)
            {
                if (!module.IsWorking)
                    continue;

                try
                {
                    module.Hook_Quit(args.SourceInfo, args.Message);
                }
                catch (Exception fail)
                {
                    Syslog.Log("MODULE: exception at Hook_Quit in " + module.Name, true);
                    Core.HandleException(fail);
                }
            }
            foreach (Channel channel in instance.ChannelList)
            {
                if (channel.ContainsUser(args.SourceInfo.Nick))
                {
                    foreach (Module module in ExtensionHandler.ExtensionList)
                    {
                        if (!module.IsWorking)
                            continue;

                        try
                        {
                            module.Hook_ChannelQuit(channel, args.SourceInfo, args.Message);
                        }
                        catch (Exception fail)
                        {
                            Syslog.Log("MODULE: exception at Hook_ChannelQuit in " + module.Name, true);
                            Core.HandleException(fail);
                        }
                    }
                }
            }
        }
Exemple #4
0
 protected internal virtual void __evt_StartMOTD(NetworkGenericDataEventArgs args)
 {
     if (this.On_StartMOTD != null)
         this.On_StartMOTD(this, args);
 }
Exemple #5
0
 protected internal virtual void __evt_QUIT(NetworkGenericDataEventArgs args)
 {
     if (this.On_QUIT != null)
         this.On_QUIT(this, args);
 }
Exemple #6
0
 protected internal virtual void __evt_INFO(NetworkGenericDataEventArgs args)
 {
     if (this.On_Info != null)
         this.On_Info(this, args);
 }