From: jluehrs2 Date: Sun, 2 Sep 2007 18:34:35 +0000 (-0500) Subject: document the information requests X-Git-Tag: 0.03~94 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=f7bae2b2b332ec622851deda0df9aa7999371947;p=luairc.git document the information requests --- 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?)