author | Mikael Berthe <mikael@lilotux.net> |
Tue, 13 Apr 2010 21:16:10 +0200 | |
changeset 4 | 3e3767ada403 |
parent 3 | 508108deee63 |
child 5 | a0b9529f17db |
--- a/mcbot/cmds/xep.lua Tue Apr 13 21:07:41 2010 +0200 +++ b/mcbot/cmds/xep.lua Tue Apr 13 21:16:10 2010 +0200 @@ -33,6 +33,7 @@ -- Logics comes from MattJ's riddim bot local function lookup_xep (xepnum) + xepnum = xepnum:gsub("[%s%?%.%!]+$", ""):upper() -- Check that xepnum is a valid number xepnum = tonumber(xepnum) if not xepnum or xepnum <= 0 or xepnum > 9999 then return nil, "What XEP?" end