1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 11:53:13 +02:00

Add an option to re-cloak opers on logout.

Closes: #421
This commit is contained in:
Sadie Powell
2025-01-13 14:36:55 +00:00
parent c680cb6c58
commit 098074ba8b
2 changed files with 11 additions and 0 deletions
+6
View File
@@ -79,6 +79,12 @@ public:
this->OnUserLogin(u);
}
void OnUserModeUnset(const MessageSource &setter, User *u, const Anope::string &mname) override
{
if (mname == "OPER" && Config->GetModule(this)->Get<bool>("activate_on_deoper", "yes"))
this->OnUserLogin(u);
}
EventReturn OnPreHelp(CommandSource &source, const std::vector<Anope::string> &params) override
{
if (!params.empty() || source.c || source.service != *HostServ)