# HG changeset patch # User Mikael Berthe # Date 1271511203 -7200 # Node ID c12be727375b6eb07e312ef684e8868d7dc5fe2d # Parent 788c62c29e1807ea55dc42f4497908608d44174a Do not require ':' or ',' after the bot name diff -r 788c62c29e18 -r c12be727375b mcbot/mcbot_engine.lua --- 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