equal
deleted
inserted
replaced
16 return issue |
16 return issue |
17 end |
17 end |
18 |
18 |
19 local function mcabber_bts (num) |
19 local function mcabber_bts (num) |
20 -- Check that xepnum is a valid number |
20 -- Check that xepnum is a valid number |
21 if num then |
21 if num then num = num:gsub("[%s%?%.%!]+$", "") end |
22 num = num:gsub("[%s%?%.%!]+$", "") |
22 num = tonumber(num) |
23 num = tonumber(num) |
|
24 end |
|
25 if not num or num < 1 then |
23 if not num or num < 1 then |
26 return nil, "Please provide an issue number" |
24 return nil, "Please provide an issue number" |
27 end |
25 end |
28 local issue = get_issue_details(num) |
26 local issue = get_issue_details(num) |
29 if not issue then |
27 if not issue then |