mirror of
https://github.com/ShadowNinja/LuaIRC.git
synced 2025-01-24 17:00:21 +01:00
Fixed util.lua, again
This commit is contained in:
parent
8b9adbd8e0
commit
ca3ae42726
4
util.lua
4
util.lua
@ -18,7 +18,7 @@ function parse(line)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local trailToken = line:find(":", lineStart)
|
local trailToken = line:find(":", lineStart)
|
||||||
local lineStop = -1
|
local lineStop = line:len()
|
||||||
local trailing
|
local trailing
|
||||||
if trailToken then
|
if trailToken then
|
||||||
trailing = line:sub(trailToken + 1)
|
trailing = line:sub(trailToken + 1)
|
||||||
@ -32,7 +32,7 @@ function parse(line)
|
|||||||
while true do
|
while true do
|
||||||
local _, stop, param = line:find("(%S+)", pos)
|
local _, stop, param = line:find("(%S+)", pos)
|
||||||
|
|
||||||
if stop >= lineStop then
|
if not param or stop > lineStop then
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user