diff --git a/doc/irc.luadoc b/doc/irc.luadoc
index ddd7b76..1a98b88 100644
--- a/doc/irc.luadoc
+++ b/doc/irc.luadoc
@@ -44,10 +44,13 @@ function irc:hook(name, id, f)
function irc:unhook(name, id)
--- Connect irc
to an IRC server.
--- @param server Server address.
+-- @param host Host address.
-- @param port Server port. [default 6667]
--- @param timeout Connection timeout value in seconds. [default 30]
-function irc:connect(server, port, timeout)
+function irc:connect(server, port)
+
+-- @param table Table of connection details
+-- @see Connection
+function irc:connect(table)
--- Disconnect irc
from the server.
-- @param message Quit message.
@@ -108,8 +111,21 @@ function irc:invoke(name, ...)
function irc:handle(prefix, cmd, params)
function irc:shutdown()
+--- Table with connection information.
+--
host
- Server host name.port
- Server port. [defaults to 6667
]timeout
- Connect timeout. [defaults to 30
]password
- Server password.secure
- Boolean to enable TLS connection, pass a params table (described, [luasec]) to controlOnRaw(line) - (any non false/nil return value assumes line handled and will not be further processed)
OnDisconnect(message, errorOccurred)
OnChat(user, channel, message)
OnNotice(user, channel, message)
OnTopic(channel, topic)
OnTopicInfo(channel, creator, timeCreated)
OnKick(channel, nick, kicker, reason)
* (kicker is a user
table)OnUserModeIs(modes)
OnChannelModeIs(user, channel, modes)