summaryrefslogtreecommitdiff
path: root/modules/core/global.h
blob: 977a327e46992be54284cda8517de93370077f7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef GLOBAL_H
#define GLOBAL_H

class GlobalService : public Service
{
 public:
	GlobalService(Module *m) : Service(m, "Global") { }

	virtual BotInfo *Bot() = 0;

	/** 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