]> jfr.im git - solanum.git/commit - ircd/s_user.c
reject: Remember and send reasons for rejections
authorEd Kellett <redacted>
Tue, 31 Dec 2019 01:11:45 +0000 (01:11 +0000)
committerEd Kellett <redacted>
Tue, 31 Dec 2019 01:35:31 +0000 (01:35 +0000)
commita9536f755c048567c6e7ee91eca0c944851d3463
tree67622a18c27a7c0aa339f4c83e915cad55e66578
parent7b8e4c0967681c7ba91df4dce488b9913ed1df75
reject: Remember and send reasons for rejections

rejectcache entries can now use either a K-line aconf or a static
string as a reason. This will be sent in a 465 numeric before the usual
ERROR. In the case of K-lines, it resembles the 465 you would have been
sent without being rejected:

; nc -s 127.6.6.6 127.0.0.1 5000
:staberinde.local 465 * :You are banned from this server- Temporary
    K-line 4320 min. - abc123 (2019/12/31 01.07)
ERROR :Closing Link: (*** Banned (cache))
; nc -s 127.128.0.0 127.0.0.1 5000
:staberinde.local 465 * :You are not authorised to use this server.
ERROR :Closing Link: (*** Banned (cache))
include/reject.h
include/s_conf.h
ircd/reject.c
ircd/s_conf.c
ircd/s_user.c