blob: 1bdd8afdc19fac0fe4f9163d12fb570515ffc552 (
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
30
31
32
33
34
35
36
37
38
|
/*
*
* (C) 2014 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*
*/
namespace Event
{
struct BotFantasy : Events
{
/** Called on fantasy command
* @param source The source of the command
* @param c The command
* @param ci The channel it's being used in
* @param params The params
* @return EVENT_STOP to halt processing and not run the command, EVENT_ALLOW to allow the command to be executed
*/
virtual EventReturn OnBotFantasy(CommandSource &source, Command *c, ChanServ::Channel *ci, const std::vector<Anope::string> ¶ms) anope_abstract;
};
struct CoreExport BotNoFantasyAccess : Events
{
/** Called on fantasy command without access
* @param source The source of the command
* @param c The command
* @param ci The channel it's being used in
* @param params The params
* @return EVENT_STOP to halt processing and not run the command, EVENT_ALLOW to allow the command to be executed
*/
virtual EventReturn OnBotNoFantasyAccess(CommandSource &source, Command *c, ChanServ::Channel *ci, const std::vector<Anope::string> ¶ms) anope_abstract;
};
}
template<> struct EventName<Event::BotFantasy> { static constexpr const char *const name = "OnBotFantasy"; };
template<> struct EventName<Event::BotNoFantasyAccess> { static constexpr const char *const name = "OnBotNoFantasyAccess"; };
|