From 6578829fa6d278cae0307676f29ab4e76d2d2518 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 6 May 2013 22:18:38 -0400 Subject: Use I_OnUserQuit for os_session because I_OnPreUserLogoff gets called too late, after the users server can be gone. Fix a couple other small things --- modules/commands/os_session.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/commands/os_session.cpp') diff --git a/modules/commands/os_session.cpp b/modules/commands/os_session.cpp index 1e0e7c59c..18393daec 100644 --- a/modules/commands/os_session.cpp +++ b/modules/commands/os_session.cpp @@ -640,7 +640,7 @@ class OSSession : public Module { this->SetPermanent(true); - Implementation i[] = { I_OnReload, I_OnUserConnect, I_OnPreUserLogoff }; + Implementation i[] = { I_OnReload, I_OnUserConnect, I_OnUserQuit }; ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation)); ModuleManager::SetPriority(this, PRIORITY_FIRST); } @@ -734,7 +734,7 @@ class OSSession : public Module catch (const SocketException &) { } } - void OnPreUserLogoff(User *u) anope_override + void OnUserQuit(User *u, const Anope::string &msg) anope_override { if (!session_limit || !u->server || u->server->IsULined()) return; -- cgit