Added a warning message into IRC's message handler

- Debug for #73
This commit is contained in:
LeMagnesium 2015-06-01 20:00:58 +02:00
parent b050cf98a6
commit 582f7a3635
2 changed files with 12 additions and 0 deletions

View File

@ -104,6 +104,12 @@ function msg_meta:fromRFC1459(line)
local pos
self.command, pos = line:match("(%S+)()")
-- /MFF BEGIN
if not pos then
minetest.log("error", "[IRC] This crash message was intended to see the value of a breaking variable. line = " .. (line or "nil"))
return
end
-- /MFF END (Mg|06/01/2015)
line = line:sub(pos)
self.args = self.args or {}

View File

@ -103,6 +103,12 @@ function msg_meta:fromRFC1459(line)
local pos
self.command, pos = line:match("(%S+)()")
-- /MFF BEGIN
if not pos then
minetest.log("error", "[IRC] This crash message was intended to see the value of a breaking variable. line = " .. (line or "nil"))
return
end
-- /MFF END (Mg|06/01/2015)
line = line:sub(pos)
self.args = self.args or {}