mcbot/mcbot_engine.lua
changeset 23 491f7d046353
parent 21 bc5d611e6d6f
child 25 788c62c29e18
equal deleted inserted replaced
22:4b360fe207e6 23:491f7d046353
    27 require "cmds.spell"
    27 require "cmds.spell"
    28 require "cmds.dict"
    28 require "cmds.dict"
    29 require "cmds.misc"
    29 require "cmds.misc"
    30 require "cmds.xep"
    30 require "cmds.xep"
    31 require "cmds.mcabber_bts"
    31 require "cmds.mcabber_bts"
       
    32 require "cmds.bofh"
    32 
    33 
    33 function process (line, botdata, muc)
    34 function process (line, botdata, muc)
    34     local n
    35     local n
    35     line = trim(line)
    36     line = trim(line)
    36     line, n = line:gsub("^"..botdata.nickname.."[,: ]%s+", "")
    37     line, n = line:gsub("^"..botdata.nickname.."[,: ]%s+", "")