roll: explicitly check null
This commit is contained in:
parent
68a313e0ab
commit
1f5971d52d
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ roll.usage = "<sides>";
|
|||
roll.addAlias("img");
|
||||
roll.callback = function (msg, line) {
|
||||
line = Number(line);
|
||||
if (!line || line == "" || Number.isNaN(line)) line = 6;
|
||||
if (line == null || line == "" || Number.isNaN(line)) line = 6;
|
||||
if (line < 0) line = Math.abs(line);
|
||||
|
||||
if (line == 0) return ":hole:";
|
||||
|
|
Loading…
Reference in a new issue