Ejemplo n.º 1
0
 public override void __evt_JOIN(NetworkChannelEventArgs 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)
             {
                 try
                 {
                     if (module.IsWorking)
                     {
                         module.Hook_Join(channel, args.SourceInfo);
                     }
                 }
                 catch (Exception fail)
                 {
                     Syslog.Log("MODULE: exception at Hook_Join in " + module.Name, true);
                     Core.HandleException(fail);
                 }
             }
         }
     }
 }
Ejemplo n.º 2
0
        protected override void __evt_JOIN(NetworkChannelEventArgs 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)
                {
                    try
                    {
                        if (module.IsWorking)
                        {
                            module.Hook_Join(channel, args.SourceInfo);
                        }
                    }
                    catch (Exception fail)
                    {
                        Syslog.Log("MODULE: exception at Hook_Join in " + module.Name, true);
                        Core.HandleException(fail);
                    }
                }
            }
        }
Ejemplo n.º 3
0
 protected internal virtual void __evt_JOIN(NetworkChannelEventArgs args)
 {
     if (this.On_JOIN != null)
         this.On_JOIN(this, args);
 }
Ejemplo n.º 4
0
 protected internal virtual void __evt_ChannelFinishBan(NetworkChannelEventArgs args)
 {
     if (this.On_ChannelFinishBan != null)
         this.On_ChannelFinishBan(this, args);
 }