mirror of
https://github.com/EnergyMech/energymech.git
synced 2025-12-17 15:36:50 +00:00
rand
This commit is contained in:
parent
3d6ab2cb01
commit
e92d9fd83e
@ -951,7 +951,7 @@ void do_rand(COMMAND_ARGS)
|
|||||||
const ChanUser *cu;
|
const ChanUser *cu;
|
||||||
int r,min = 1,max = 100,maxaccess = -1;
|
int r,min = 1,max = 100,maxaccess = -1;
|
||||||
|
|
||||||
if (!rest && *rest == 0)
|
if (!rest || *rest == 0)
|
||||||
goto pick_randnum;
|
goto pick_randnum;
|
||||||
|
|
||||||
if (attrtab[(uchar)*rest] & NUM)
|
if (attrtab[(uchar)*rest] & NUM)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user