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 6773 by michael, Fri Nov 13 18:38:18 2015 UTC vs.
Revision 6774 by michael, Fri Nov 13 20:20:48 2015 UTC

# Line 763 | Line 763 | user_set_hostmask(struct Client *target_
763    }
764  
765    if (ConfigGeneral.cycle_on_host_change)
766 <    sendto_common_channels_local(target_p, 0, 0, ":%s!%s@%s QUIT :Changing hostname",
766 >    sendto_common_channels_local(target_p, 0, 0, CAP_CHGHOST, ":%s!%s@%s QUIT :Changing hostname",
767                                   target_p->name, target_p->username, target_p->host);
768  
769 +  sendto_common_channels_local(target_p, 0, CAP_CHGHOST, 0, ":%s!%s@%s CHGHOST %s %s",
770 +                               target_p->name, target_p->username,
771 +                               target_p->host, target_p->username, hostname);
772 +
773    if (HasFlag(target_p, FLAGS_USERHOST))
774      userhost_del(target_p->username, target_p->host, !MyConnect(target_p));
775  
# Line 810 | Line 814 | user_set_hostmask(struct Client *target_
814  
815      *p = '\0';
816  
817 <
814 <    sendto_channel_local(target_p, member->chptr, 0, CAP_EXTENDED_JOIN, 0, ":%s!%s@%s JOIN %s %s :%s",
817 >    sendto_channel_local(target_p, member->chptr, 0, CAP_EXTENDED_JOIN, CAP_CHGHOST, ":%s!%s@%s JOIN %s %s :%s",
818                           target_p->name, target_p->username,
819                           target_p->host, member->chptr->name,
820                           (!IsDigit(target_p->account[0]) && target_p->account[0] != '*') ? target_p->account : "*",
821                           target_p->info);
822 <    sendto_channel_local(target_p, member->chptr, 0, 0, CAP_EXTENDED_JOIN, ":%s!%s@%s JOIN :%s",
822 >    sendto_channel_local(target_p, member->chptr, 0, 0, CAP_EXTENDED_JOIN | CAP_CHGHOST, ":%s!%s@%s JOIN :%s",
823                           target_p->name, target_p->username,
824                           target_p->host, member->chptr->name);
825  
826      if (nickbuf[0])
827 <      sendto_channel_local(target_p, member->chptr, 0, 0, 0, ":%s MODE %s +%s %s",
827 >      sendto_channel_local(target_p, member->chptr, 0, 0, CAP_CHGHOST, ":%s MODE %s +%s %s",
828                             target_p->servptr->name, member->chptr->name,
829                             modebuf, nickbuf);
830      if (target_p->away[0])
831 <      sendto_channel_local(target_p, member->chptr, 0, CAP_AWAY_NOTIFY, 0,
831 >      sendto_channel_local(target_p, member->chptr, 0, CAP_AWAY_NOTIFY, CAP_CHGHOST,
832                             ":%s!%s@%s AWAY :%s",
833                             target_p->name, target_p->username,
834                             target_p->host, target_p->away);

Diff Legend

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