From 82008d507cccbf24c73502bc97bc492d21305549 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 25 Apr 2014 16:46:37 -0400 Subject: [PATCH] Fix Stas::Unserialize to return the instance --- modules/commands/os_stats.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/commands/os_stats.cpp b/modules/commands/os_stats.cpp index bd868b903..baa349db4 100644 --- a/modules/commands/os_stats.cpp +++ b/modules/commands/os_stats.cpp @@ -14,7 +14,12 @@ struct Stats : Serializable { - Stats() : Serializable("Stats") { } + static Stats *me; + + Stats() : Serializable("Stats") + { + me = this; + } void Serialize(Serialize::Data &data) const anope_override { @@ -26,7 +31,7 @@ struct Stats : Serializable { data["maxusercnt"] >> MaxUserCount; data["maxusertime"] >> MaxUserTime; - return NULL; + return me; } };