--- a/mcbot/mcbot_engine.lua Sun Apr 11 18:13:18 2010 +0200
+++ b/mcbot/mcbot_engine.lua Sun Apr 11 22:03:12 2010 +0200
@@ -23,10 +23,10 @@
require "cmds.dict"
require "cmds.misc"
-function process (line, botname, muc)
+function process (line, botdata, muc)
local n
line = trim(line)
- line, n = line:gsub("^"..botname.."[,: ]%s+", "")
+ line, n = line:gsub("^"..botdata.nickname.."[,: ]%s+", "")
if muc and n ~= 1 then return nil, nil end
local cmd, arg
@@ -38,7 +38,7 @@
if cmd then
for name, f in pairs(commands) do
if cmd and cmd:lower() == name then
- return f(arg)
+ return f(arg, botdata)
end
end
else