From 50f223fe66fdc0464aa58feac1da91cbe30688de Mon Sep 17 00:00:00 2001 From: Joshua Simmons Date: Sun, 18 Jul 2010 19:43:50 +1000 Subject: [PATCH] Fixing some whitespace, and line endings. --- LICENSE.txt | 5 +++-- asyncoperations.lua | 4 ++-- doc/luadoc.css | 8 ++++---- init.lua | 11 +++++------ util.lua | 2 +- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/LICENSE.txt b/LICENSE.txt index bd1b7dd..0a68ca1 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,4 +1,4 @@ ---[[ +--[[ Lua IRC library Copyright (c) 2010 Jakob Ovrum @@ -22,4 +22,5 @@ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR - OTHER DEALINGS IN THE SOFTWARE.]] \ No newline at end of file + OTHER DEALINGS IN THE SOFTWARE.]] + diff --git a/asyncoperations.lua b/asyncoperations.lua index dfcde18..36dbe81 100644 --- a/asyncoperations.lua +++ b/asyncoperations.lua @@ -71,7 +71,7 @@ function meta:setMode(t) local add, rem = t.add, t.remove assert(add or rem, "table contains neither 'add' nor 'remove'") - + if add then mode = table.concat{"+", add} end @@ -79,6 +79,6 @@ function meta:setMode(t) if rem then mode = table.concat{mode, "-", rem} end - + self:send("MODE %s %s", verify(target, 2), verify(mode, 2)) end diff --git a/doc/luadoc.css b/doc/luadoc.css index afc0063..7fdfd20 100644 --- a/doc/luadoc.css +++ b/doc/luadoc.css @@ -197,12 +197,12 @@ div.header, div.footer { margin-left: 0em; } } a { font-weight:bold; color: #004080; text-decoration: underline; } - #main { background-color: #ffffff; border-left: 0px; } - #container { margin-left: 2%; margin-right: 2%; background-color: #ffffff; } + #main { background-color: #ffffff; border-left: 0px; } + #container { margin-left: 2%; margin-right: 2%; background-color: #ffffff; } - #content { margin-left: 0px; padding: 1em; border-left: 0px; border-right: 0px; background-color: #ffffff; } + #content { margin-left: 0px; padding: 1em; border-left: 0px; border-right: 0px; background-color: #ffffff; } - #navigation { display: none; + #navigation { display: none; } pre.example { font-family: "Andale Mono", monospace; diff --git a/init.lua b/init.lua index e2296ec..9d1d0a1 100644 --- a/init.lua +++ b/init.lua @@ -23,7 +23,7 @@ require "irc.asyncoperations" local meta_preconnect = {} function meta_preconnect.__index(o, k) local v = rawget(meta_preconnect, k) - + if not v and meta[k] then error("field '"..k.."' is not accessible before connecting", 2) end @@ -134,7 +134,7 @@ end function meta:disconnect(message) local message = message or "Bye!" - + self:invoke("OnDisconnect", message, false) self:send("QUIT :%s", message) @@ -200,7 +200,7 @@ handlers["JOIN"] = function(o, prefix, channel) o.channels[channel].users[user.nick] = user end end - + o:invoke("OnJoin", user, channel) end @@ -247,7 +247,7 @@ end handlers["353"] = function(o, prefix, me, chanType, channel, names) if o.track_users then o.channels[channel] = o.channels[channel] or {users = {}, type = chanType} - + local users = o.channels[channel].users for nick in names:gmatch("(%S+)") do local access, name = parseNick(nick) @@ -319,7 +319,7 @@ function meta:whois(nick) self:send("WHOIS %s", nick) local result = {} - + while true do local line = getline(self, 3) if line then @@ -338,7 +338,6 @@ function meta:whois(nick) if result.account then result.account = result.account[3] - elseif result.registered then result.account = result.registered[2] end diff --git a/util.lua b/util.lua index 0c15eaa..1a8aeed 100644 --- a/util.lua +++ b/util.lua @@ -16,7 +16,7 @@ function parse(line) prefix = line:sub(2, space-1) lineStart = space end - + local trailToken = line:find(":", lineStart) local lineStop = line:len() local trailing