anope- supernets anope source code & configuration |
git clone git://git.acid.vegas/anope.git |
Log | Files | Refs | Archive | README |
global.h (730B)
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 GLOBAL_H 10 #define GLOBAL_H 11 12 class GlobalService : public Service 13 { 14 public: 15 GlobalService(Module *m) : Service(m, "GlobalService", "Global") 16 { 17 } 18 19 /** Retrieves the bot which sends global messages unless otherwise specified. */ 20 virtual Reference<BotInfo> GetDefaultSender() = 0; 21 22 /** Send out a global message to all users 23 * @param sender Our client which should send the global 24 * @param source The sender of the global 25 * @param message The message 26 */ 27 virtual void SendGlobal(BotInfo *sender, const Anope::string &source, const Anope::string &message) = 0; 28 }; 29 30 #endif // GLOBAL_H