summaryrefslogtreecommitdiff
path: root/include/modules/global.h
blob: adac905cc525cecde771fad58931b46dd13444d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 *
 * (C) 2014 Anope Team
 * Contact us at team@anope.org
 *
 * Please read COPYING and README for further details.
 *
 */

namespace Global
{
	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(ServiceBot *sender, const Anope::string &source, const Anope::string &message) anope_abstract;
	};
	static ServiceReference<GlobalService> service("GlobalService", "Global");
}