mirror of
https://github.com/anope/anope.git
synced 2026-06-28 20:36:38 +02:00
Move Serialize::Types to construct after the corresponding extensible items they require when unserializing
This commit is contained in:
@@ -241,8 +241,8 @@ class CommandOSInfo : public Command
|
||||
class OSInfo : public Module
|
||||
{
|
||||
CommandOSInfo commandosinfo;
|
||||
Serialize::Type oinfo_type;
|
||||
ExtensibleItem<OperInfos> oinfo;
|
||||
Serialize::Type oinfo_type;
|
||||
|
||||
void OnInfo(CommandSource &source, Extensible *e, InfoFormatter &info)
|
||||
{
|
||||
@@ -262,7 +262,7 @@ class OSInfo : public Module
|
||||
|
||||
public:
|
||||
OSInfo(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR),
|
||||
commandosinfo(this), oinfo_type("OperInfo", OperInfo::Unserialize), oinfo(this, "operinfo")
|
||||
commandosinfo(this), oinfo(this, "operinfo"), oinfo_type("OperInfo", OperInfo::Unserialize)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user