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

namespace Event
{
	struct CoreExport ServiceBotEvent : Events
	{
		/** Called when a user uses botserv/info on a bot or channel.
		 */
		virtual void OnServiceBot(CommandSource &source, ServiceBot *bi, ChanServ::Channel *ci, InfoFormatter &info) anope_abstract;
	};
	extern CoreExport EventHandlers<ServiceBotEvent> OnServiceBot;
}

template<> struct EventName<Event::ServiceBotEvent> { static constexpr const char *const name = "OnServiceBot"; };