1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-05 15:13:13 +02:00

Fixed compile bug with me not knowing structure stuff

This commit is contained in:
griever
2002-01-06 04:08:04 +00:00
parent 3a49482363
commit 2ed3bf18df
+6 -6
View File
@@ -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;