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:
+6
-6
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user