mirror of
https://github.com/anope/anope.git
synced 2026-07-02 19:43:13 +02:00
Allow modules to store data in their own databases.
This commit is contained in:
@@ -19,15 +19,10 @@ struct NSMiscData : ExtensibleItem, Serializable
|
||||
Anope::string name;
|
||||
Anope::string data;
|
||||
|
||||
NSMiscData(NickCore *ncore, const Anope::string &n, const Anope::string &d) : nc(ncore), name(n), data(d)
|
||||
NSMiscData(NickCore *ncore, const Anope::string &n, const Anope::string &d) : Serializable("NSMiscData"), nc(ncore), name(n), data(d)
|
||||
{
|
||||
}
|
||||
|
||||
const Anope::string serialize_name() const anope_override
|
||||
{
|
||||
return "NSMiscData";
|
||||
}
|
||||
|
||||
Serialize::Data serialize() const anope_override
|
||||
{
|
||||
Serialize::Data sdata;
|
||||
|
||||
Reference in New Issue
Block a user