1
0
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:
Sadie Powell
2025-08-01 13:08:22 +01:00
parent 2c6f4d7c27
commit 5a3f9f3f87
7 changed files with 11 additions and 6 deletions
+3
View File
@@ -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
{