]> arthur.barton.de Git - ngircd.git/commit
Limit the number of message targes, and suppress duplicates
authorAlexander Barton <alex@barton.de>
Mon, 4 Jan 2016 21:11:47 +0000 (22:11 +0100)
committerAlexander Barton <alex@barton.de>
Mon, 4 Jan 2016 21:15:46 +0000 (22:15 +0100)
commit49ab79d0e64c73d575dfe87edce40637b8f2adef
tree38b1712ada276efa8f659331a643bea71a532791
parentcedba36965c3b89a5ab7222764bd751fd7fc88bf
Limit the number of message targes, and suppress duplicates

This prevents an user from flooding the server using commands like this:

  PRIVMSG nick1,nick1,nick1,...

Duplicate targets are suppressed silently (channels and clients).

In addition, the maximum number of targets per PRIVMSG/NOTICE/... command
are limited to MAX_HNDL_TARGETS (25). If there are more, the daemon sends
the new 407 (ERR_TOOMANYTARGETS_MSG) numeric, containing the first target
that hasn't been handled any more.

Closes #187.
src/ngircd/defines.h
src/ngircd/irc.c
src/ngircd/messages.h
src/testsuite/message-test.e