Procházet zdrojové kódy

* Fixed chanset 'manop/mdop/mop' not accepting numbers correctly

svn: 2185
Bryan Drewery před 21 roky
rodič
revize
ce1b3d6057
1 změnil soubory, kde provedl 2 přidání a 4 odebrání
  1. 2 4
      src/flags.c

+ 2 - 4
src/flags.c

@@ -565,10 +565,8 @@ whois_access(struct userrec *user, struct userrec *whois_user)
 
 int deflag_translate(const char *buf)
 {
-  int num = atoi(buf);
-
-  if (egg_isdigit(num))
-    return num;
+  if (str_isdigit(buf))
+    return (atoi(buf));
 
   if (!egg_strcasecmp(buf, "ignore"))
     return P_IGNORE;