diff options
| author | Alexander Barton <alex@barton.de> | 2016-01-04 22:11:47 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2016-01-04 22:15:46 +0100 |
| commit | 49ab79d0e64c73d575dfe87edce40637b8f2adef (patch) | |
| tree | 38b1712ada276efa8f659331a643bea71a532791 /src/testsuite | |
| parent | cedba36965c3b89a5ab7222764bd751fd7fc88bf (diff) | |
| download | ngircd-49ab79d0e64c73d575dfe87edce40637b8f2adef.tar.gz ngircd-49ab79d0e64c73d575dfe87edce40637b8f2adef.zip | |
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.
Diffstat (limited to 'src/testsuite')
| -rw-r--r-- | src/testsuite/message-test.e | 4 |
1 files changed, 2 insertions, 2 deletions
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" |