diff options
Diffstat (limited to 'FICS/talkproc.c')
-rw-r--r-- | FICS/talkproc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/FICS/talkproc.c b/FICS/talkproc.c index 635a1a3..275ac3b 100644 --- a/FICS/talkproc.c +++ b/FICS/talkproc.c @@ -64,8 +64,8 @@ int quota_time; PRIVATE int CheckShoutQuota(int p) { - int timeleft = 0; - int timenow = time(0); + time_t timeleft = 0; + time_t timenow = time(NULL); timeleft = timenow - parray[p].lastshout_a; @@ -110,7 +110,7 @@ com_shout(int p, param_list param) } parray[p].lastshout_a = parray[p].lastshout_b; - parray[p].lastshout_b = time(0); + parray[p].lastshout_b = time(NULL); if (!printablestring(param[0].val.string)) { pprintf(p, "Your message contains some unprintable " @@ -226,7 +226,7 @@ com_it(int p, param_list param) } parray[p].lastshout_a = parray[p].lastshout_b; - parray[p].lastshout_b = time(0); + parray[p].lastshout_b = time(NULL); if (!printablestring(param[0].val.string)) { pprintf(p, "Your message contains some unprintable " |