1
0
mirror of https://github.com/osmarks/ngircd.git synced 2025-09-12 07:16:02 +00:00

Implement user mode 'C': require "same channel" to send message

If the target user of a PRIVMSG or NOTICE command has the user mode 'C'
set, it is required that both sender and receiver are on the same channel.

This prevents private flooding by completely unknown clients.
This commit is contained in:
Alexander Barton
2012-01-16 11:43:22 +01:00
parent 4d0069c3a8
commit 1f4711a547
5 changed files with 23 additions and 1 deletions

View File

@@ -23,6 +23,7 @@ channels he is using at the moment.
a 0.3.0 User is away.
c 17 IRC operator wants to receive connect/disconnect NOTICEs.
C 19 Only users that share a channel are allowed to send messages.
i 0.0.1 User is "invisible".
o 0.0.1 User is IRC operator.
r 0.0.1 User is restricted.