anope- supernets anope source code & configuration |
git clone git://git.acid.vegas/anope.git |
Log | Files | Refs | Archive | README |
memoserv.h (936B)
1 /* 2 * 3 * (C) 2011-2022 Anope Team 4 * Contact us at team@anope.org 5 * 6 * Please read COPYING and README for further details. 7 */ 8 9 #ifndef MEMOSERV_H 10 #define MEMOSERV_H 11 12 class MemoServService : public Service 13 { 14 public: 15 enum MemoResult 16 { 17 MEMO_SUCCESS, 18 MEMO_INVALID_TARGET, 19 MEMO_TOO_FAST, 20 MEMO_TARGET_FULL 21 }; 22 23 MemoServService(Module *m) : Service(m, "MemoServService", "MemoServ") 24 { 25 } 26 27 /** Sends a memo. 28 * @param source The source of the memo, can be anything. 29 * @param target The target of the memo, nick or channel. 30 * @param message Memo text 31 * @param force true to force the memo, restrictions/delays etc are not checked 32 */ 33 virtual MemoResult Send(const Anope::string &source, const Anope::string &target, const Anope::string &message, bool force = false) = 0; 34 35 /** Check for new memos and notify the user if there are any 36 * @param u The user 37 */ 38 virtual void Check(User *u) = 0; 39 }; 40 41 #endif // MEMOSERV_H