]> jfr.im git - irc/rqf/shadowircd.git/commit - modules/m_kline.c
Add propagated klines.
authorJilles Tjoelker <redacted>
Fri, 5 Mar 2010 17:36:44 +0000 (18:36 +0100)
committerJilles Tjoelker <redacted>
Fri, 5 Mar 2010 17:36:44 +0000 (18:36 +0100)
commit65b8e0029ece152f56ea31919957ba1563e20eb4
tree67183c3f78bb091e84a612c16b6bdfd2947b5d51
parent90072e8be6b3674ff6bf017fed9517740363e940
Add propagated klines.

A KLINE command without the ON clause now sets a propagated
("global") ban. KLINE commands with the ON clause work as
before.

Propagated klines can only be removed with an UNKLINE command
without the ON clause, and this removes them everywhere.
In fact, they remain in a deactivated state until the latest
expiry ever used for the mask has passed.

Propagated klines are part of the netburst using a new BAN
message and capab. If such a burst has an effect, both the
server name and the original oper are shown in the server
notice.

No checks whatsoever are done on bursted klines at this time.

The system should be extended to XLINE and RESV later.

There is currently no way to list propagated klines,
but TESTLINE works normally.
include/s_conf.h
include/s_serv.h
modules/Makefile.in
modules/core/m_ban.c [new file with mode: 0644]
modules/m_kline.c
src/modules.c
src/s_conf.c
src/s_serv.c