1
0
mirror of https://github.com/ShadowNinja/LuaIRC.git synced 2025-07-08 02:50:23 +02:00

Add an optional message queue to prevent flooding

This commit is contained in:
ShadowNinja
2013-10-23 09:37:21 -04:00
parent b1cbbf1963
commit 7f475070dd
5 changed files with 70 additions and 14 deletions

View File

@ -159,3 +159,12 @@ function irc:shutdown()
-- Apart from <code>nick</code>, fields may be missing. To fill them in, enable user tracking and use irc:whois.
-- @name User
-- @class table
-- If you need a simple queue you can enable one by requiring "irc.queue".
-- Doind so will add the following features:
--- Queue a raw line of IRC to be sent to the server as soon as possible.
-- @param msg Line to be sent, excluding newline characters.
-- @param ... Format parameters for <code>msg</code>, with <code>string.format</code> semantics. [optional]
function irc:queue(msg, ...)