mcabbot.lua
changeset 28 510849236c58
parent 27 a166e9ab8065
child 40 95ba0699f365
equal deleted inserted replaced
27:a166e9ab8065 28:510849236c58
    31     local message = h.message
    31     local message = h.message
    32     if h.groupchat and h.groupchat == "true" then
    32     if h.groupchat and h.groupchat == "true" then
    33         muc = true
    33         muc = true
    34     end
    34     end
    35     if muc == true then
    35     if muc == true then
    36         if h.delayed == ""  and h.attention and h.attention == "true" then
    36         if h.delayed == "" then
    37             if h.resource and h.resource ~= mcabbot.nickname then
    37             if mcabbot.cmdprefix and message:starts(mcabbot.cmdprefix) then
       
    38                 perso = true
       
    39             elseif h.attention and h.attention == "true" and
       
    40                    h.resource and h.resource ~= mcabbot.nickname then
    38                 perso = true
    41                 perso = true
    39             end
    42             end
    40         end
    43         end
    41     else
    44     else
    42         if h.jid ~= mcabbot.jid then
    45         if h.jid ~= mcabbot.jid then