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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user