Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 8525a9b6 authored by rswindell's avatar rswindell

Fix PCR code: actually return the formatted string.

parent 1a49387a
......@@ -921,6 +921,7 @@ const char* sbbs_t::atcode(char* sp, char* str, size_t maxlen, long* pmode)
if(useron.posts)
f = (float)useron.logons / useron.posts;
safe_snprintf(str, maxlen, "%u", f ? (uint)(100 / f) : useron.posts > useron.logons ? 100 : 0);
return str;
}
if(!strcmp(sp,"LASTNEW"))
......
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