diff options
author | Adam <Adam@anope.org> | 2012-11-22 00:50:33 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-11-22 00:50:33 -0500 |
commit | d33a0f75a5c0c584fbb7cc0076da36d494f39494 (patch) | |
tree | 7b2274cc833c793c0f5595660cbd4d715de52ffd /include/memo.h | |
parent | 368d469631763e9c8bf399980d0ac7c5b5664d39 (diff) |
Pretty large coding style cleanup, in source doc
cleanup, and allow protocol mods to depend on each
other
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(); |