summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-12-31 22:01:27 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-12-31 22:01:27 +0000
commit9451b779d7a513c87f48db40e14d245b7f62c844 (patch)
tree34f8113120c13bf0aa7cfd6d458bfa31fb1adb36 /src
parente4907b2ac7c9c17868128a868a033efbbc0625ea (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_sqllog.cpp10
1 files 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);
}