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); } } } } }
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); } } } }
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); } } } } }
protected internal virtual void __evt_StartMOTD(NetworkGenericDataEventArgs args) { if (this.On_StartMOTD != null) this.On_StartMOTD(this, args); }
protected internal virtual void __evt_QUIT(NetworkGenericDataEventArgs args) { if (this.On_QUIT != null) this.On_QUIT(this, args); }
protected internal virtual void __evt_INFO(NetworkGenericDataEventArgs args) { if (this.On_Info != null) this.On_Info(this, args); }