changeset 7 | c515e8218c87 |
parent 6 | 7cf014d0d206 |
child 8 | db84d97cf13d |
--- a/mcbot/cmds/mcabber_bts.lua Tue Apr 13 22:43:43 2010 +0200 +++ b/mcbot/cmds/mcabber_bts.lua Tue Apr 13 22:45:12 2010 +0200 @@ -18,10 +18,8 @@ local function mcabber_bts (num) -- Check that xepnum is a valid number - if num then - num = num:gsub("[%s%?%.%!]+$", "") - num = tonumber(num) - end + if num then num = num:gsub("[%s%?%.%!]+$", "") end + num = tonumber(num) if not num or num < 1 then return nil, "Please provide an issue number" end