mirror of
https://github.com/anope/anope.git
synced 2026-07-04 16:53:16 +02:00
Fix Stas::Unserialize to return the instance
This commit is contained in:
@@ -14,7 +14,12 @@
|
|||||||
|
|
||||||
struct Stats : Serializable
|
struct Stats : Serializable
|
||||||
{
|
{
|
||||||
Stats() : Serializable("Stats") { }
|
static Stats *me;
|
||||||
|
|
||||||
|
Stats() : Serializable("Stats")
|
||||||
|
{
|
||||||
|
me = this;
|
||||||
|
}
|
||||||
|
|
||||||
void Serialize(Serialize::Data &data) const anope_override
|
void Serialize(Serialize::Data &data) const anope_override
|
||||||
{
|
{
|
||||||
@@ -26,7 +31,7 @@ struct Stats : Serializable
|
|||||||
{
|
{
|
||||||
data["maxusercnt"] >> MaxUserCount;
|
data["maxusercnt"] >> MaxUserCount;
|
||||||
data["maxusertime"] >> MaxUserTime;
|
data["maxusertime"] >> MaxUserTime;
|
||||||
return NULL;
|
return me;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user