diff options
Diffstat (limited to 'include/memo.h')
-rw-r--r-- | include/memo.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/include/memo.h b/include/memo.h index 1879f89b3..9fdbb3cab 100644 --- a/include/memo.h +++ b/include/memo.h @@ -8,7 +8,6 @@ * Based on the original code of Epona by Lara. * Based on the original code of Services by Andy Church. * - * */ #ifndef MEMO_H @@ -27,30 +26,28 @@ enum MemoFlag MF_RECEIPT }; -const Anope::string MemoFlagStrings[] = { - "MF_UNREAD", "MF_RECEIPT", "" -}; - -/* Memo info structures. Since both nicknames and channels can have memos, - * we encapsulate memo data in a MemoList to make it easier to handle. */ class CoreExport Memo : public Flags<MemoFlag>, public Serializable { public: Memo(); - Serialize::Data serialize() const anope_override; - static Serializable* unserialize(Serializable *obj, Serialize::Data &); + Serialize::Data Serialize() const anope_override; + static Serializable* Unserialize(Serializable *obj, Serialize::Data &); Anope::string owner; - time_t time; /* When it was sent */ + /* When it was sent */ + time_t time; Anope::string sender; Anope::string text; }; +/* Memo info structures. Since both nicknames and channels can have memos, + * we encapsulate memo data in a MemoInfo to make it easier to handle. + */ struct CoreExport MemoInfo { int16_t memomax; - serialize_checker<std::vector<Memo *> > memos; + Serialize::Checker<std::vector<Memo *> > memos; std::vector<Anope::string> ignores; MemoInfo(); |