diff options
author | Adam <Adam@anope.org> | 2014-04-25 16:46:37 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-04-25 16:46:37 -0400 |
commit | 82008d507cccbf24c73502bc97bc492d21305549 (patch) | |
tree | 47c577d61587a7aefc8d3a92244790509fd2e0ac /modules/commands/os_stats.cpp | |
parent | 2ab4f175a8ff96355bbb58302eee87138577a3c5 (diff) |
Fix Stas::Unserialize to return the instance
Diffstat (limited to 'modules/commands/os_stats.cpp')
-rw-r--r-- | modules/commands/os_stats.cpp | 9 |
1 files 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; } }; |