]> granicus.if.org Git - ngircd/commit
Implement user mode 'C': require "same channel" to send message
authorAlexander Barton <alex@barton.de>
Mon, 16 Jan 2012 10:43:22 +0000 (11:43 +0100)
committerAlexander Barton <alex@barton.de>
Mon, 16 Jan 2012 10:43:22 +0000 (11:43 +0100)
commit1f4711a5474d2f0ea4664bd9b54f036af11f96cd
tree0f476a4bdd2c42a494faf7942325ae85b9215d6c
parent4d0069c3a8021c32b5bdeeec57f1d41d369587ce
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.
doc/Modes.txt
src/ngircd/defines.h
src/ngircd/irc-mode.c
src/ngircd/irc.c
src/ngircd/messages.h