114 |
|
if (!EmptyString(destination) && irccmp(destination, me.name) && irccmp(destination, me.id)) |
115 |
|
{ |
116 |
|
if ((target_p = hash_find_server(destination))) |
117 |
< |
sendto_one(target_p, ":%s PING %s :%s", |
118 |
< |
ID_or_name(source_p, target_p), source_p->name, |
119 |
< |
ID_or_name(target_p, target_p)); |
117 |
> |
{ |
118 |
> |
if (target_p->from != source_p->from) |
119 |
> |
sendto_one(target_p, ":%s PING %s :%s", |
120 |
> |
ID_or_name(source_p, target_p), source_p->name, |
121 |
> |
ID_or_name(target_p, target_p)); |
122 |
> |
} |
123 |
|
else if (!IsDigit(*destination)) |
124 |
|
sendto_one_numeric(source_p, &me, ERR_NOSUCHSERVER, destination); |
125 |
|
} |