From 49ab79d0e64c73d575dfe87edce40637b8f2adef Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Mon, 4 Jan 2016 22:11:47 +0100 Subject: 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/testsuite/message-test.e | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/testsuite/message-test.e') diff --git a/src/testsuite/message-test.e b/src/testsuite/message-test.e index 5dc325de..e4637863 100644 --- a/src/testsuite/message-test.e +++ b/src/testsuite/message-test.e @@ -35,13 +35,13 @@ expect { send "privmsg nick,nick :test\r" expect { timeout { exit 1 } - "@* PRIVMSG nick :test\r*@* PRIVMSG nick :test" + "@* PRIVMSG nick :test" } send "privmsg Nick,#testChannel,nick :test\r" expect { timeout { exit 1 } - "@* PRIVMSG nick :test\r*401*@* PRIVMSG nick :test" + "@* PRIVMSG nick :test\r*401" } send "privmsg doesnotexist :test\r" -- cgit 1.4.1