]> jfr.im git - irc/DALnet/bahamut.git/commit
New module hooks (#69)
authorKobi Shmueli <redacted>
Fri, 5 Oct 2018 05:02:08 +0000 (08:02 +0300)
committerEmilio A. Escobar <redacted>
Fri, 5 Oct 2018 05:02:08 +0000 (22:02 -0700)
commit66ca1813657d62119be5efe237e51fb0fb797df8
tree62ea54fd3779ef3a7e5dacbdfadfa86f805780e5
parent3cdd0b744358fb4c3fe1a1f4a12252518621aa2c
New module hooks (#69)

* Add SPAMWARN module hook

CHOOK_SPAMWARN is called from s_user.c and channel.c during spam warnings to opers

Params: 4: (aClient *source, int type, int max_targets, char *target_name)

Returns: int (FLUSH_BUFFER would prevent the normal message from being sent)

* Add ONACCESS module hook

CHOOK_ONACCESS is called from s_user.c during m_user (in general, it is called before CHOOK_POSTACCESS and after CHOOK_PREACCESS)

Params: 5: (aClient *, char *username, char *host, char *server, char *realname)
Returns: int (FLUSH_BUFFER can block the m_user call)
include/hooks.h
src/channel.c
src/modules.c
src/s_user.c