1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 09:23:13 +02:00

Warn when a user loads a deprecated module.

This commit is contained in:
Sadie Powell
2025-08-01 13:08:22 +01:00
parent 2c6f4d7c27
commit 5a3f9f3f87
7 changed files with 11 additions and 6 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ class ENone final
{
public:
ENone(const Anope::string &modname, const Anope::string &creator)
: Module(modname, creator, ENCRYPTION | VENDOR)
: Module(modname, creator, DEPRECATED | ENCRYPTION | VENDOR)
{
if (ModuleManager::FindFirstOf(ENCRYPTION) == this)
throw ModuleException("enc_none is deprecated and can not be used as a primary encryption method");