From 3c6e24665f52e3a38adfe4ab6a9adcbbb4926ca2 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 11 Dec 2022 09:58:27 +0000 Subject: Move from m_sslinfo to core_oper and rework. - Promote autologin to a core concept with visibility in events. - Replace the binary yes/no value with strict/relaxed/never. This intentionally breaks v3 oper block autologin as admins will need to review them for the security implications of the new behaviour. --- src/modules.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules.cpp') diff --git a/src/modules.cpp b/src/modules.cpp index 45b8a4538..ed354a680 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -162,9 +162,9 @@ void Module::OnServiceAdd(ServiceProvider&) { DetachEvent(I_OnServiceAdd); } void Module::OnServiceDel(ServiceProvider&) { DetachEvent(I_OnServiceDel); } ModResult Module::OnUserWrite(LocalUser*, ClientProtocol::Message&) { DetachEvent(I_OnUserWrite); return MOD_RES_PASSTHRU; } void Module::OnShutdown(const std::string& reason) { DetachEvent(I_OnShutdown); } -ModResult Module::OnPreOperLogin(LocalUser*, const std::shared_ptr&) { DetachEvent(I_OnPreOperLogin); return MOD_RES_PASSTHRU; } -void Module::OnOperLogin(User*, const std::shared_ptr&) { DetachEvent(I_OnOperLogin); } -void Module::OnPostOperLogin(User*) { DetachEvent(I_OnPostOperLogin); } +ModResult Module::OnPreOperLogin(LocalUser*, const std::shared_ptr&, bool) { DetachEvent(I_OnPreOperLogin); return MOD_RES_PASSTHRU; } +void Module::OnOperLogin(User*, const std::shared_ptr&, bool) { DetachEvent(I_OnOperLogin); } +void Module::OnPostOperLogin(User*, bool) { DetachEvent(I_OnPostOperLogin); } void Module::OnOperLogout(User*) { DetachEvent(I_OnOperLogout); } void Module::OnPostOperLogout(User*, const std::shared_ptr&) { DetachEvent(I_OnPostOperLogout); } -- cgit v1.3.1-10-gc9f91