ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/user.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/user.c (file contents):
Revision 7610 by michael, Tue Jun 21 12:54:58 2016 UTC vs.
Revision 7624 by michael, Thu Jun 23 12:44:09 2016 UTC

# Line 483 | Line 483 | register_local_user(struct Client *clien
483                    &unknown_list, &local_client_list);
484  
485    user_welcome(client_p);
486 <  userhost_add(client_p->username, client_p->host, 0);
486 >  userhost_add(client_p->sockhost, 0);
487    AddFlag(client_p, FLAGS_USERHOST);
488  
489    introduce_client(client_p);
# Line 534 | Line 534 | register_remote_user(struct Client *clie
534    SetClient(client_p);
535    dlinkAdd(client_p, &client_p->lnode, &client_p->servptr->serv->client_list);
536    dlinkAdd(client_p, &client_p->node, &global_client_list);
537 <  userhost_add(client_p->username, client_p->host, 1);
537 >  userhost_add(client_p->sockhost, 1);
538    AddFlag(client_p, FLAGS_USERHOST);
539  
540    if (HasFlag(client_p->servptr, FLAGS_EOB))
# Line 752 | Line 752 | user_set_hostmask(struct Client *client_
752                                 client_p->name, client_p->username,
753                                 client_p->host, client_p->username, hostname);
754  
755  if (HasFlag(client_p, FLAGS_USERHOST))
756    userhost_del(client_p->username, client_p->host, !MyConnect(client_p));
757
755    strlcpy(client_p->host, hostname, sizeof(client_p->host));
756  
760  userhost_add(client_p->username, client_p->host, !MyConnect(client_p));
761  AddFlag(client_p, FLAGS_USERHOST);
762
757    if (MyConnect(client_p))
758    {
759      sendto_one_numeric(client_p, &me, RPL_VISIBLEHOST, client_p->host);

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)