blob: 54eb3f353cd48818ca2f6c538eabbb8e04108624 (
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
|
/*
*
* (C) 2014 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*
*/
static Serialize::TypeReference<ChanServ::ChanAccess> accesschanaccess("AccessChanAccess");
static Serialize::TypeReference<ChanServ::ChanAccess> flagschanaccess("FlagsChanAccess");
static Serialize::TypeReference<ChanServ::ChanAccess> xopchanaccess("XOPChanAccess");
namespace Event
{
struct CoreExport LevelChange : Events
{
/** Called when a level for a channel is changed
* @param source The source of the command
* @param ci The channel the level was changed on
* @param priv The privilege changed
* @param what The new level
*/
virtual void OnLevelChange(CommandSource &source, ChanServ::Channel *ci, const Anope::string &priv, int16_t what) anope_abstract;
};
}
template<> struct EventName<Event::LevelChange> { static constexpr const char *const name = "OnLevelChange"; };
|