1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 21:03:13 +02:00
Files
anope/modules/pseudoclients/global.h
T
Adam d33a0f75a5 Pretty large coding style cleanup, in source doc
cleanup, and allow protocol mods to depend on each
other
2012-11-22 00:50:33 -05:00

22 lines
587 B
C++

#ifndef GLOBAL_H
#define GLOBAL_H
class GlobalService : public Service
{
public:
GlobalService(Module *m) : Service(m, "GlobalService", "Global") { }
/** Send out a global message to all users
* @param sender Our client which should send the global
* @param source The sender of the global
* @param message The message
*/
virtual void SendGlobal(const BotInfo *sender, const Anope::string &source, const Anope::string &message) = 0;
};
static ServiceReference<GlobalService> GlobalService("GlobalService", "Global");
static Reference<BotInfo> Global;
#endif // GLOBAL_H