From f7bae2b2b332ec622851deda0df9aa7999371947 Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Sun, 2 Sep 2007 13:34:35 -0500 Subject: document the information requests --- src/irc.lua | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/src/irc.lua b/src/irc.lua index b472c49..fa16e9f 100644 --- a/src/irc.lua +++ b/src/irc.lua @@ -734,6 +734,15 @@ end -- information requests {{{ -- server_version {{{ +--- +-- Request the version of the IRC server you are currently connected to. +-- @param cb Callback to call when the information is available. The single +-- table parameter to this callback will contain the fields: +-- function server_version(cb) -- apparently the optional server parameter isn't supported for servers -- which you are not directly connected to (freenode specific?) @@ -749,6 +758,28 @@ end -- whois {{{ -- TODO: allow server parameter (to get user idle time) +--- +-- Request WHOIS information about a given user. +-- @param cb Callback to call when the information is available. The single +-- table parameter to this callback may contain any or all of the +-- fields: +-- +-- @param nick User to request WHOIS information about function whois(cb, nick) nick = nick:lower() requestinfo.whois[nick] = {nick = nick} @@ -762,6 +793,14 @@ end -- }}} -- server_time {{{ +--- +-- Request the current time of the server you are connected to. +-- @param cb Callback to call when the information is available. The single +-- table parameter to this callback will contain the fields: +-- function server_time(cb) -- apparently the optional server parameter isn't supported for servers -- which you are not directly connected to (freenode specific?) -- cgit v1.2.3-54-g00ecf