Explorar el Código

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

svn: 2185
Bryan Drewery hace 21 años
padre
commit
ce1b3d6057
Se han modificado 1 ficheros con 2 adiciones y 4 borrados
  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;