Sfoglia il codice sorgente

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

svn: 2185
Bryan Drewery 21 anni fa
parent
commit
ce1b3d6057
1 ha cambiato i file con 2 aggiunte e 4 eliminazioni
  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;