From 9451b779d7a513c87f48db40e14d245b7f62c844 Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 31 Dec 2009 22:01:27 +0000 Subject: Hook OnUserRegister instead of OnUserConnect so that remote user connection is logged also. Fixes bug #926. Conflicts: src/modules/m_sqllog.cpp git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12237 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_sqllog.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/modules/m_sqllog.cpp b/src/modules/m_sqllog.cpp index 29fa320db..6ac6c0688 100644 --- a/src/modules/m_sqllog.cpp +++ b/src/modules/m_sqllog.cpp @@ -171,8 +171,12 @@ class ModuleSQLLog : public Module active_queries.clear(); Implementation eventlist[] = { I_OnRehash, I_OnOper, I_OnGlobalOper, I_OnKill, - I_OnPreCommand, I_OnUserConnect, I_OnUserQuit, I_OnLoadModule }; - ServerInstance->Modules->Attach(eventlist, this, 8); + I_OnPreCommand, I_OnUserRegister, I_OnUserQuit, I_OnLoadModule }; + ServerInstance->Modules->Attach(eventlist, this, 9); + } + + virtual ~ModuleSQLLog() + { } void ReadConfig() @@ -241,7 +245,7 @@ class ModuleSQLLog : public Module return MOD_RES_PASSTHRU; } - virtual void OnUserConnect(LocalUser* user) + virtual void OnUserRegister(LocalUser* user) { AddLogEntry(LT_CONNECT,user->nick,user->host,user->server); } -- cgit v1.2.3