Follow up to 9333921
Thanks to @Playtester's friend Ash for reporting this.
This commit is contained in:
parent
d095fe7a67
commit
7df9962a72
@ -7801,16 +7801,17 @@ BUILDIN_FUNC(readparam)
|
|||||||
|
|
||||||
if( script_hasdata(st, 3) ){
|
if( script_hasdata(st, 3) ){
|
||||||
if( script_isint(st, 3) ){
|
if( script_isint(st, 3) ){
|
||||||
if( !script_charid2sd(3, sd) ){
|
script_charid2sd(3, sd);
|
||||||
script_pushint(st, -1);
|
|
||||||
return SCRIPT_CMD_FAILURE;
|
|
||||||
}
|
|
||||||
}else{
|
}else{
|
||||||
if( !script_nick2sd(3, sd) ){
|
script_nick2sd(3, sd);
|
||||||
script_pushint(st, -1);
|
|
||||||
return SCRIPT_CMD_FAILURE;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
sd = script_rid2sd(st);
|
||||||
|
}
|
||||||
|
|
||||||
|
if( !sd ){
|
||||||
|
script_pushint(st, -1);
|
||||||
|
return SCRIPT_CMD_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If you use a parameter, return the value behind it
|
// If you use a parameter, return the value behind it
|
||||||
|
Loading…
x
Reference in New Issue
Block a user