Commit 03503ae0 authored by rswindell's avatar rswindell
Browse files

eprintf() and eputs() won't print/log blank/empty strings now.

parent 9a9bffb4
......@@ -168,6 +168,9 @@ int lputs(int level, const char* str)
int eputs(int level, const char *str)
{
if(*str == 0)
return 0;
if(level <= LOG_ERR) {
errorlog(&scfg,startup==NULL ? NULL:startup->host_name, str);
if(startup!=NULL && startup->errormsg!=NULL)
......@@ -204,7 +207,7 @@ int eprintf(int level, const char *fmt, ...)
strip_ctrl(sbuf, sbuf);
return(eputs(level,sbuf));
return(eputs(level,truncsp(sbuf)));
}
/* Picks the right log callback function (event or term) based on the sbbs->cfg.node_num value */
......
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