aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_log_sql.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-08-23 23:18:55 +0100
committerGravatar Sadie Powell2022-08-23 23:18:55 +0100
commita5c2a94bd8d6b2e7ea5fc531a109e5ea3e81a287 (patch)
treef138145b2047cd910b90c3dee83577fa0990b463 /src/modules/m_log_sql.cpp
parentRefactor the core event macros. (diff)
Fix cached log messages not having the correct timestamp.
Diffstat (limited to 'src/modules/m_log_sql.cpp')
-rw-r--r--src/modules/m_log_sql.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_log_sql.cpp b/src/modules/m_log_sql.cpp
index 6d6df048d..4ffe6784a 100644
--- a/src/modules/m_log_sql.cpp
+++ b/src/modules/m_log_sql.cpp
@@ -59,7 +59,7 @@ public:
{
}
- void OnLog(Log::Level level, const std::string& type, const std::string& message) override
+ void OnLog(time_t time, Log::Level level, const std::string& type, const std::string& message) override
{
if (!sql)
{
@@ -71,7 +71,7 @@ public:
{ "level", ConvToStr(static_cast<uint8_t>(level)) },
{ "levelstr", Log::LevelToString(level) },
{ "message", message },
- { "time", ConvToStr(ServerInstance->Time()) },
+ { "time", ConvToStr(time) },
{ "type", type },
};
sql->Submit(new SQLQuery(thismod), query, params);