summaryrefslogtreecommitdiff
path: root/modules/commands/cs_log.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/cs_log.cpp')
-rw-r--r--modules/commands/cs_log.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/commands/cs_log.cpp b/modules/commands/cs_log.cpp
index bc6ba73c6..4de7e31ee 100644
--- a/modules/commands/cs_log.cpp
+++ b/modules/commands/cs_log.cpp
@@ -51,7 +51,7 @@ struct LogSettingImpl : LogSetting, Serializable
if (ci == NULL)
return NULL;
- LogSetting *ls;
+ LogSettingImpl *ls;
if (obj)
ls = anope_dynamic_static_cast<LogSettingImpl *>(obj);
else
@@ -69,6 +69,8 @@ struct LogSettingImpl : LogSetting, Serializable
data["extra"] >> ls->extra;
data["creator"] >> ls->creator;
data["created"] >> ls->created;
+
+ return ls;
}
};