From f73108f532645127b7bd917aefd77cf40a2e01ef Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 23 Apr 2005 23:33:21 +0000 Subject: Added global connect/oper logging git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1178 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_sqllog.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/modules') 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); -- cgit v1.2.3