summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-23 23:33:21 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-23 23:33:21 +0000
commitf73108f532645127b7bd917aefd77cf40a2e01ef (patch)
tree415591ddb03fe8711f7a2b23315c73dec252d362 /src/modules
parentddc514e66dacdaf475d9dddc33441498be985fa0 (diff)
Added global connect/oper logging
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1178 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/extra/m_sqllog.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/modules/extra/m_sqllog.cpp b/src/modules/extra/m_sqllog.cpp
index ed110d6e4..11fd186c1 100644
--- a/src/modules/extra/m_sqllog.cpp
+++ b/src/modules/extra/m_sqllog.cpp
@@ -193,6 +193,11 @@ class ModuleSQLLog : public Module
AddLogEntry(LT_OPER,user->nick,user->host,user->server);
}
+ virtual void OnGlobalOper(userrec* user)
+ {
+ AddLogEntry(LT_OPER,user->nick,user->host,user->server);
+ }
+
virtual int OnKill(userrec* source, userrec* dest, std::string reason)
{
AddLogEntry(LT_KILL,dest->nick,dest->host,source->nick);
@@ -218,6 +223,11 @@ class ModuleSQLLog : public Module
AddLogEntry(LT_CONNECT,user->nick,user->host,user->server);
}
+ virtual void OnGlobalConnect(userrec* user)
+ {
+ AddLogEntry(LT_CONNECT,user->nick,user->host,user->server);
+ }
+
virtual void OnUserQuit(userrec* user)
{
AddLogEntry(LT_DISCONNECT,user->nick,user->host,user->server);