Commit 2765757f authored by rswindell's avatar rswindell
Browse files

code_ok() returns int (bool), '.' allowed in internal codes.

parent 526ad78b
......@@ -1874,14 +1874,14 @@ user's account will expire.
sprintf(inar,"%.*s",LEN_ARSTR,ar);
}
char code_ok(char *str)
int code_ok(char *str)
{
if(!strlen(str))
return(0);
if(strcspn(str," \\/.|<>*?+[]:=\";,")!=strlen(str))
return(0);
return(1);
if(!strlen(str))
return(0);
if(strcspn(str," \\/|<>*?+[]:=\";,")!=strlen(str))
return(0);
return(1);
}
int lprintf(char *fmt, ...)
......
......@@ -106,9 +106,8 @@ void actsets_cfg(void);
void chan_cfg(void);
void mdm_cfg(int mdmnum);
int export_mdm(char *fname);
char code_ok(char *str);
int code_ok(char *str);
int bits(long l);
char oneflag(long l);
void getar(char *desc, char *ar);
/* scfgnet.h */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment