author | Mikael Berthe <mikael@lilotux.net> |
Sat, 17 Apr 2010 15:33:23 +0200 | |
changeset 26 | c12be727375b |
parent 25 | 788c62c29e18 |
child 27 | a166e9ab8065 |
--- a/mcbot/mcbot_engine.lua Sat Apr 17 15:24:18 2010 +0200 +++ b/mcbot/mcbot_engine.lua Sat Apr 17 15:33:23 2010 +0200 @@ -35,7 +35,7 @@ function process (line, botdata, muc) local n line = trim(line) - line, n = line:gsub("^"..botdata.nickname.."[,: ]%s+", "") + line, n = line:gsub("^"..botdata.nickname.."[,:]?%s+", "") if muc and n ~= 1 then return nil, nil end local cmd, arg