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

Generate a new nick if it is used or erroneous

This commit is contained in:
ShadowNinja
2013-07-16 13:00:51 -04:00
parent bc79606de0
commit a79c9451f6
3 changed files with 16 additions and 1 deletions

View File

@ -25,8 +25,9 @@
module "irc"
--- Create a new IRC object. Use <code>irc:connect</code> to connect to a server.
-- @param user Table with fields <code>nick</code>, <code>username</code> and <code>realname</code>.
-- @param user Table with fields <code>nick</code>, <code>username</code>, <code>realname</code>, and <code>nick_generator</code>.
-- The <code>nick</code> field is required.
-- The <code>nick_generator</code> field is a fuction that should return a new nick name given the old one.
--
-- @return Returns a new <code>irc</code> object.
function new(user)