From 7ee5e7e26c106fb58bb87aa47c9fa902c1b94efb Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 31 Dec 2023 16:15:08 +0100 Subject: Reformatted functions --- FICS/playerdb.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'FICS') diff --git a/FICS/playerdb.c b/FICS/playerdb.c index c89325a..a1d3e9a 100644 --- a/FICS/playerdb.c +++ b/FICS/playerdb.c @@ -1196,17 +1196,19 @@ PUBLIC int player_count(int CountAdmins) return count; } -PUBLIC int player_idle(int p) -{ - if (parray[p].status != PLAYER_PROMPT) - return time(0) - parray[p].logon_time; - else - return time(0) - parray[p].last_command_time; +PUBLIC int +player_idle(int p) +{ // XXX + if (parray[p].status != PLAYER_PROMPT) + return (time(NULL) - parray[p].logon_time); + + return (time(NULL) - parray[p].last_command_time); } -PUBLIC int player_ontime(int p) -{ - return time(0) - parray[p].logon_time; +PUBLIC int +player_ontime(int p) +{ // XXX + return (time(NULL) - parray[p].logon_time); } PRIVATE void -- cgit v1.2.3