# HG changeset patch # User Mikael Berthe # Date 1271523332 -7200 # Node ID 510849236c58012d9539245171a3a9fd16eedf55 # Parent a166e9ab8065f80d18355a843701f6f6e90e5045 Fix command prefix usage diff -r a166e9ab8065 -r 510849236c58 mcabbot.lua --- a/mcabbot.lua Sat Apr 17 15:44:09 2010 +0200 +++ b/mcabbot.lua Sat Apr 17 18:55:32 2010 +0200 @@ -33,8 +33,11 @@ muc = true end if muc == true then - if h.delayed == "" and h.attention and h.attention == "true" then - if h.resource and h.resource ~= mcabbot.nickname then + if h.delayed == "" then + if mcabbot.cmdprefix and message:starts(mcabbot.cmdprefix) then + perso = true + elseif h.attention and h.attention == "true" and + h.resource and h.resource ~= mcabbot.nickname then perso = true end end