diff --git a/src/coremods/core_info/core_info.cpp b/src/coremods/core_info/core_info.cpp index abc5fc522..8d1978f49 100644 --- a/src/coremods/core_info/core_info.cpp +++ b/src/coremods/core_info/core_info.cpp @@ -62,6 +62,7 @@ struct ISupportAction final class CoreModInfo final : public Module + , public ISupport::EventListener { private: CommandAdmin cmdadmin; @@ -111,6 +112,7 @@ private: public: CoreModInfo() : Module(VF_CORE | VF_VENDOR, "Provides the ADMIN, COMMANDS, INFO, MODULES, MOTD, TIME, SERVLIST, and VERSION commands") + , ISupport::EventListener(this) , cmdadmin(this) , cmdcommands(this) , cmdinfo(this) @@ -237,6 +239,12 @@ public: { ServerInstance->Modules.SetPriority(this, I_OnUserConnect, PRIORITY_FIRST); } + + void OnBuildClassISupport(const std::shared_ptr& klass, ISupport::TokenMap& tokens) override + { + if (klass->fakelag) + tokens["FAKELAG"]; + } }; MODULE_INIT(CoreModInfo)