Merge pull request #3 from joonicks/dev

rand
This commit is contained in:
joonicks 2018-04-22 22:01:03 +02:00 committed by GitHub
commit 95e6ee5ff0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -951,7 +951,7 @@ void do_rand(COMMAND_ARGS)
const ChanUser *cu;
int r,min = 1,max = 100,maxaccess = -1;
if (!rest && *rest == 0)
if (!rest || *rest == 0)
goto pick_randnum;
if (attrtab[(uchar)*rest] & NUM)