1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 23:16:39 +02:00
Files
anope/modules/core/global.h
T
Adam f858164dee Rewrote how commands are handled within Anope.
This allows naming commands and having spaces within command names.
2011-07-14 02:31:12 -04:00

21 lines
507 B
C++

#ifndef GLOBAL_H
#define GLOBAL_H
class GlobalService : public Service
{
public:
GlobalService(Module *m) : Service(m, "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(BotInfo *sender, const Anope::string &source, const Anope::string &message) = 0;
};
static service_reference<GlobalService> global("Global");
#endif // GLOBAL_H