| 864 |
|
/* sendnick_TS() |
| 865 |
|
* |
| 866 |
|
* inputs - client (server) to send nick towards |
| 867 |
< |
* - client to send nick for |
| 867 |
> |
* - client to send nick for |
| 868 |
|
* output - NONE |
| 869 |
|
* side effects - NICK message is sent towards given client_p |
| 870 |
|
*/ |
| 889 |
|
if (HasID(target_p) && IsCapable(client_p, CAP_TS6)) |
| 890 |
|
sendto_one(client_p, ":%s UID %s %d %lu %s %s %s %s %s :%s", |
| 891 |
|
target_p->servptr->id, |
| 892 |
< |
target_p->name, target_p->hopcount + 1, |
| 893 |
< |
(unsigned long) target_p->tsinfo, |
| 894 |
< |
ubuf, target_p->username, target_p->host, |
| 895 |
< |
((MyClient(target_p)&&!IsIPSpoof(target_p))?target_p->sockhost:"0"), |
| 896 |
< |
target_p->id, target_p->info); |
| 892 |
> |
target_p->name, target_p->hopcount + 1, |
| 893 |
> |
(unsigned long) target_p->tsinfo, |
| 894 |
> |
ubuf, target_p->username, target_p->host, |
| 895 |
> |
(MyClient(target_p) && IsIPSpoof(target_p)) ? |
| 896 |
> |
"0" : target_p->sockhost), target_p->id, target_p->info); |
| 897 |
|
else |
| 898 |
|
sendto_one(client_p, "NICK %s %d %lu %s %s %s %s :%s", |
| 899 |
|
target_p->name, target_p->hopcount + 1, |
| 900 |
|
(unsigned long) target_p->tsinfo, |
| 901 |
|
ubuf, target_p->username, target_p->host, |
| 902 |
|
target_p->servptr->name, target_p->info); |
| 903 |
+ |
|
| 904 |
|
if (IsConfAwayBurst((struct AccessItem *)map_to_conf(client_p->serv->sconf))) |
| 905 |
|
if (!EmptyString(target_p->away)) |
| 906 |
|
sendto_one(client_p, ":%s AWAY :%s", target_p->name, |