summaryrefslogtreecommitdiff
path: root/include/modules/cs_info.h
blob: f80e3daf2df7c0353977b7317b2fa55861e3bb53 (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
/*
 *
 * (C) 2014 Anope Team
 * Contact us at team@anope.org
 *
 * Please read COPYING and README for further details.
 *
 */

namespace Event
{
	struct CoreExport ChanInfo : Events
	{
		/** Called when a user requests info for a channel
		 * @param source The user requesting info
		 * @param ci The channel the user is requesting info for
		 * @param info Data to show the user requesting information
		 * @param show_hidden true if we should show the user everything
		 */
		virtual void OnChanInfo(CommandSource &source, ChanServ::Channel *ci, InfoFormatter &info, bool show_hidden) anope_abstract;
	};
}

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