diff --git a/exec/newuser.js b/exec/newuser.js index 68d85d1d968e9b9eb86dc32945baa9049f5d703b..f02edf011ca10f7e00433a92babfb13e9258fa9a 100644 --- a/exec/newuser.js +++ b/exec/newuser.js @@ -57,7 +57,11 @@ function chk_qwk_id(str) if(str.indexOf('&')>=0) return(false); - if(system.matchuser(str,true)!=user.number || system.trashcan(str)) + var userfound=system.matchuser(str,true); + if(userfound && userfound!=user.number) + return(false); + + if(system.trashcan(str)) return(false); return(true);