From 2ed3bf18df8c22aec9ab569da1f6bfb2a6358f9e Mon Sep 17 00:00:00 2001 From: griever Date: Sun, 6 Jan 2002 04:08:04 +0000 Subject: [PATCH] Fixed compile bug with me not knowing structure stuff --- src/s_user.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/s_user.c b/src/s_user.c index fa4f730e6..e98bc464b 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -365,20 +365,20 @@ int check_for_target_limit(aClient *sptr, void *target, const char *name) return 0; } - if (TSTime() < sptr->nexttarget) + if (TSTime() < sptr->user->nexttarget) { - sptr->last += TARGET_DELAY; /* lag them up */ - sptr->nexttarget += TARGET_DELAY; + sptr->since += TARGET_DELAY; /* lag them up */ + sptr->user->nexttarget += TARGET_DELAY; return 1; } - if (TSTime() > sptr->nexttarget + TARGET_DELAY*MAXTARGETS) + if (TSTime() > sptr->user->nexttarget + TARGET_DELAY*MAXTARGETS) { - sptr->nexttarget = TSTime() + TARGET_DELAY*MAXTARGETS; + sptr->user->nexttarget = TSTime() + TARGET_DELAY*MAXTARGETS; } - sptr->nexttarget += TARGET_DELAY; + sptr->user->nexttarget += TARGET_DELAY; memmove(&sptr->targets[1], &sptr->targets[0], MAXTARGETS - 1); sptr->targets[0] = hash;