summaryrefslogtreecommitdiff
path: root/modules/commands/os_stats.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-04-25 16:46:37 -0400
committerAdam <Adam@anope.org>2014-04-25 16:46:37 -0400
commit82008d507cccbf24c73502bc97bc492d21305549 (patch)
tree47c577d61587a7aefc8d3a92244790509fd2e0ac /modules/commands/os_stats.cpp
parent2ab4f175a8ff96355bbb58302eee87138577a3c5 (diff)
Fix Stas::Unserialize to return the instance
Diffstat (limited to 'modules/commands/os_stats.cpp')
-rw-r--r--modules/commands/os_stats.cpp9
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;
}
};