mcabbot.lua
changeset 40 95ba0699f365
parent 28 510849236c58
child 41 5c0a2db896f5
equal deleted inserted replaced
39:237af42156a1 40:95ba0699f365
     7 
     7 
     8 require "mcbot.mcbot_engine"
     8 require "mcbot.mcbot_engine"
     9 
     9 
    10 local mcabbot = {}
    10 local mcabbot = {}
    11 mcabbot.nickname = "McBot"
    11 mcabbot.nickname = "McBot"
    12 mcabbot.jid = "mcabbot@lilotux.net"
    12 mcabbot.jid = "mcbot@lilotux.net"
    13 mcabbot.cmdprefix = "%%"
    13 mcabbot.cmdprefix = "%%"
    14 
    14 
    15 local function hk_subscription (h)
    15 local function hk_subscription (h)
    16     if h.type == "subscribe" then
    16     if h.type == "subscribe" then
    17         -- Let's authorize them...
    17         -- Let's authorize them...