diff options
| author | 2025-03-02 16:01:43 +0000 | |
|---|---|---|
| committer | 2025-03-02 16:03:38 +0000 | |
| commit | 5ea0bfff6fdb21d668263d1e54f9078fdecc8cd6 (patch) | |
| tree | 08b8dada439a674af06ba75a9a0b6cc92447ba7b /src | |
| parent | Revert "Scope the container SSL enforcement a bit better". (diff) | |
Add an 005 token to let clients know that fakelag is enabled.
Diffstat (limited to 'src')
| -rw-r--r-- | src/coremods/core_info/core_info.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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<ConnectClass>& klass, ISupport::TokenMap& tokens) override + { + if (klass->fakelag) + tokens["FAKELAG"]; + } }; MODULE_INIT(CoreModInfo) |
