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
|
||||
|
||||
local trailToken = line:find(":", lineStart)
|
||||
local lineStop = -1
|
||||
local lineStop = line:len()
|
||||
local trailing
|
||||
if trailToken then
|
||||
trailing = line:sub(trailToken + 1)
|
||||
@ -32,7 +32,7 @@ function parse(line)
|
||||
while true do
|
||||
local _, stop, param = line:find("(%S+)", pos)
|
||||
|
||||
if stop >= lineStop then
|
||||
if not param or stop > lineStop then
|
||||
break
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user