X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=blobdiff_plain;f=ircd%2Fs_user.c;h=a989a06d00778160d48901cf8c59506261790fd6;hp=1fdfcbf323751eaaee06cd4f28479c12ab7971cb;hb=db5ce1caa14de28c6b333ac3e1484ed068dfd236;hpb=3c91fc4a46bc963b0e71e28a1383874a1593941c diff --git a/ircd/s_user.c b/ircd/s_user.c index 1fdfcbf..a989a06 100644 --- a/ircd/s_user.c +++ b/ircd/s_user.c @@ -702,10 +702,6 @@ int check_target_limit(struct Client *sptr, void *target, const char *name, assert(cli_local(sptr)); targets = cli_targets(sptr); - /* If user is invited to channel, give him/her a free target */ - if (IsChannelName(name) && IsInvited(sptr, target)) - return 0; - /* * Same target as last time? */ @@ -723,6 +719,10 @@ int check_target_limit(struct Client *sptr, void *target, const char *name, */ if (!created) { if (CurrentTime < cli_nexttarget(sptr)) { + /* If user is invited to channel, give him/her a free target */ + if (IsChannelName(name) && IsInvited(sptr, target)) + return 0; + if (cli_nexttarget(sptr) - CurrentTime < TARGET_DELAY + 8) { /* * No server flooding