mirror of
https://github.com/anope/anope.git
synced 2026-06-28 20:36:38 +02:00
Warn when a user loads a deprecated module.
This commit is contained in:
@@ -182,6 +182,9 @@ ModuleReturn ModuleManager::LoadModule(const Anope::string &modname, User *u)
|
||||
m->filename = pbuf;
|
||||
m->handle = handle;
|
||||
|
||||
if (m->type & DEPRECATED)
|
||||
Log(LOG_TERMINAL) << "Warning: " << modname << " is deprecated and will be removed in a future release";
|
||||
|
||||
/* Initialize config */
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user