diff options
author | Adam <Adam@anope.org> | 2012-10-01 18:50:29 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-10-01 18:50:29 -0400 |
commit | a434baed9154d90ad0dfd31c71a463fb8300bfd8 (patch) | |
tree | 587b81c85c8abd676bb6fe1897415017a6d3f85a /src/operserv.cpp | |
parent | f14a3dfb8a4cc9da7b5066ac8320265d54dba177 (diff) |
Allow modules to store data in their own databases.
Diffstat (limited to 'src/operserv.cpp')
-rw-r--r-- | src/operserv.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/operserv.cpp b/src/operserv.cpp index de49c55b9..b339a697f 100644 --- a/src/operserv.cpp +++ b/src/operserv.cpp @@ -45,7 +45,7 @@ void XLine::InitRegex() } } -XLine::XLine(const Anope::string &mask, const Anope::string &reason, const Anope::string &uid) : Mask(mask), Created(0), Expires(0), Reason(reason), UID(uid) +XLine::XLine(const Anope::string &mask, const Anope::string &reason, const Anope::string &uid) : Serializable("XLine"), Mask(mask), Created(0), Expires(0), Reason(reason), UID(uid) { regex = NULL; manager = NULL; @@ -53,7 +53,7 @@ XLine::XLine(const Anope::string &mask, const Anope::string &reason, const Anope this->InitRegex(); } -XLine::XLine(const Anope::string &mask, const Anope::string &by, const time_t expires, const Anope::string &reason, const Anope::string &uid) : Mask(mask), By(by), Created(Anope::CurTime), Expires(expires), Reason(reason), UID(uid) +XLine::XLine(const Anope::string &mask, const Anope::string &by, const time_t expires, const Anope::string &reason, const Anope::string &uid) : Serializable("XLine"), Mask(mask), By(by), Created(Anope::CurTime), Expires(expires), Reason(reason), UID(uid) { regex = NULL; manager = NULL; @@ -138,11 +138,6 @@ bool XLine::IsRegex() const return !this->Mask.empty() && this->Mask[0] == '/' && this->Mask[this->Mask.length() - 1] == '/'; } -const Anope::string XLine::serialize_name() const -{ - return "XLine"; -} - Serialize::Data XLine::serialize() const { Serialize::Data data; |