irccmp(destination, me.id))
{
if((target_p = find_client(destination)))
- sendto_one(target_p, ":%s PONG %s %s",
- get_id(source_p, target_p), parv[1],
+ sendto_one(target_p, ":%s PONG %s %s",
+ get_id(source_p, target_p), parv[1],
get_id(target_p, target_p));
else
{
{
if(parc == 2 && !EmptyString(parv[1]))
{
- if(ConfigFileEntry.ping_cookie && source_p->user && source_p->name[0])
+ if(ConfigFileEntry.ping_cookie && source_p->flags & FLAGS_SENTUSER && source_p->name[0])
{
unsigned long incoming_ping = strtoul(parv[1], NULL, 16);
if(incoming_ping)
{
if(source_p->localClient->random_ping == incoming_ping)
{
- char buf[USERLEN + 1];
- rb_strlcpy(buf, source_p->username, sizeof(buf));
source_p->flags |= FLAGS_PING_COOKIE;
- register_local_user(client_p, source_p, buf);
+ register_local_user(client_p, source_p);
}
else
{