From c8c23158a4ff74822d6c7d201dc53d879e3d91e8 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 22 Apr 2011 03:16:11 -0400 Subject: Moved the core pseudo clients out into their own modules --- modules/core/global.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 modules/core/global.h (limited to 'modules/core/global.h') diff --git a/modules/core/global.h b/modules/core/global.h new file mode 100644 index 000000000..977a327e4 --- /dev/null +++ b/modules/core/global.h @@ -0,0 +1,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 global("Global"); + +#endif // GLOBAL_H + -- cgit