diff options
Diffstat (limited to 'util/topusr.c')
-rw-r--r-- | util/topusr.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/util/topusr.c b/util/topusr.c index d2679d39..58f3d86b 100644 --- a/util/topusr.c +++ b/util/topusr.c @@ -91,22 +91,6 @@ int } #endif /* HAVE_TIN */ -int -bad_user_id(const char *userid) -{ - register char ch; - if (strlen(userid) < 2) - return 1; - if (not_alpha(*userid)) - return 1; - while((ch = *(++userid))) - { - if (not_alnum(ch)) - return 1; - } - return 0; -} - int main(int argc, char **argv) { int i, j; @@ -137,7 +121,7 @@ int main(int argc, char **argv) aman.userid[IDLEN]=0; aman.nickname[22]=0; if((aman.userlevel & PERM_NOTOP) || !aman.userid[0] || - bad_user_id(aman.userid) || + !is_validuserid(aman.userid) || strchr(aman.userid, '.')) { continue; |