1
0
mirror of https://github.com/osmarks/ngircd.git synced 2025-10-27 12:07:39 +00:00

Implement user mode "b": block messages

When a user has set mode "b", all private messages and notices to this
user are blocked if they don't originate from a registered user, an IRC Op,
server or service. The originator gets an error numeric sent back in this
case, ERR_CANNOTSENDTONICK_MSG(976), which is/was(?) used by KineIRCd, too.

This closes bug #144.
This commit is contained in:
DNS777
2012-10-08 12:11:04 +02:00
committed by Alexander Barton
parent 87deb43012
commit 9d97004a28
5 changed files with 15 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ channels he is using at the moment.
mode since description
a 0.3.0 User is away.
b 20 User blocks private messages and notices.
B 20 User is flagged as a "bot".
c 17 IRC operator wants to receive connect/disconnect NOTICEs.
C 19 Only users that share a channel are allowed to send messages.