--- a/mcabbot.lua Sat Apr 17 15:33:23 2010 +0200
+++ b/mcabbot.lua Sat Apr 17 15:44:09 2010 +0200
@@ -10,6 +10,7 @@
local mcabbot = {}
mcabbot.nickname = "McBot"
mcabbot.jid = "mcabbot@lilotux.net"
+mcabbot.cmdprefix = "%%"
local function hk_subscription (h)
if h.type == "subscribe" then
@@ -50,7 +51,7 @@
cmd = "say_to -q "..h.jid.."/"..h.resource.." "
end
mcabbot.message = h
- local res, errmsg = process(message, mcabbot, muc)
+ local res, errmsg = process(message, mcabbot, muc, mcabbot.cmdprefix)
mcabbot.message = nil
if res then
msg = res