Enforce a message size limit

Forces all messages to be at most 512 bytes, to stop 'cmd help all' from irc_commands DoSing the server.
This is done in the core IRC mod so it limits everything rather than just irc_commands.
This commit is contained in:
luk3yx 2018-10-02 17:53:40 +13:00
parent c9c57a6f93
commit 17fc8a39b3
1 changed files with 1 additions and 2 deletions

View File

@ -213,6 +213,5 @@ end
function irc.queue(msg)
if not irc.connected then return end
irc.conn:queue(msg)
irc.conn:queue(msg:sub(1, 512))
end