203 |
|
{ |
204 |
|
if ((target_p = find_client(nick)) != NULL) |
205 |
|
{ |
206 |
– |
if (IsServer(source_p->from)) |
207 |
– |
client_burst_if_needed(source_p->from, target_p); |
208 |
– |
|
206 |
|
if (IsClient(target_p)) |
207 |
|
{ |
208 |
|
whois_person(source_p, target_p); |
209 |
|
found = 1; |
210 |
|
} |
211 |
|
} |
215 |
– |
else if (!ServerInfo.hub && uplink && IsCapable(uplink, CAP_LL)) |
216 |
– |
{ |
217 |
– |
if (parc > 2) |
218 |
– |
sendto_one(uplink,":%s WHOIS %s :%s", |
219 |
– |
source_p->name, nick, nick); |
220 |
– |
else |
221 |
– |
sendto_one(uplink,":%s WHOIS %s", |
222 |
– |
source_p->name, nick); |
223 |
– |
return; |
224 |
– |
} |
212 |
|
} |
213 |
|
else /* wilds is true */ |
214 |
|
{ |
228 |
– |
/* disallow wild card whois on lazylink leafs for now */ |
229 |
– |
if (!ServerInfo.hub && uplink && IsCapable(uplink, CAP_LL)) |
230 |
– |
return; |
231 |
– |
|
215 |
|
if (!IsOper(source_p)) |
216 |
|
{ |
217 |
|
if ((last_used + ConfigFileEntry.pace_wait_simple) > CurrentTime) |
282 |
|
found |= single_whois(source_p, target_p); |
283 |
|
} |
284 |
|
|
285 |
< |
return (found); |
285 |
> |
return found; |
286 |
|
} |
287 |
|
|
288 |
|
/* single_whois() |