/* Assign and propagate the fakehost */
ircd_strncpy(cli_user(cptr)->fakehost, parv[1], HOSTLEN);
- hide_hostmask(cptr, FLAG_FAKEHOST);
+ hide_hostmask(cptr, HIDE_HOSTMASK_FLAG_FAKEHOST);
/*for(i = HighestFd; i >= 0; i--) {
if((another = LocalClientArray[i]) && IsServer(another)) {
/* Assign and propagate the fakehost */
ircd_strncpy(cli_user(acptr)->fakehost, parv[2], HOSTLEN);
- hide_hostmask(acptr, FLAG_FAKEHOST);
+ hide_hostmask(acptr, HIDE_HOSTMASK_FLAG_FAKEHOST);
/*
for(i = HighestFd; i >= 0; i--) {
if((another = LocalClientArray[i]) && IsServer(another)) {
/* Set fakehost and propagate the changed host. */
ircd_strncpy(cli_user(target)->fakehost, parv[2], HOSTLEN);
- hide_hostmask(target, FLAG_FAKEHOST);
+ hide_hostmask(target, HIDE_HOSTMASK_FLAG_FAKEHOST);
/* Borrowed from send_umode_out().
* I found no better way to do this. However, maybe someone has the time to check out
}
/* Ignore the assignment if it changes nothing. */
- if(IsFakeHost(target) && strcmp(cli_user(target)->fakehost, parv[3]) == 0 && strcmp(cli_user(target)->fakeuser, parv[2]) == 0) {
+ if(IsFakeHost(target) && IsFakeIdent(target) && strcmp(cli_user(target)->fakehost, parv[3]) == 0 && strcmp(cli_user(target)->fakeuser, parv[2]) == 0) {
return 0;
}
/* Set fakehost and propagate the changed host. */
ircd_strncpy(cli_user(target)->fakehost, parv[3], HOSTLEN);
ircd_strncpy(cli_user(target)->fakeuser, parv[2], USERLEN);
- hide_hostmask(target, FLAG_FAKEHOST | FLAG_FAKEIDENT);
+ hide_hostmask(target, HIDE_HOSTMASK_FLAG_FAKEHOST | HIDE_HOSTMASK_FLAG_FAKEIDENT);
sendcmdto_serv_butone(sptr, CMD_FAKEHOST2, cptr, "%C %s %s", target, cli_user(target)->fakeuser, cli_user(target)->fakehost);
/* Assign and propagate the fakehost */
ircd_strncpy(cli_user(target)->fakehost, parv[2], HOSTLEN);
- hide_hostmask(target, FLAG_FAKEHOST);
+ hide_hostmask(target, HIDE_HOSTMASK_FLAG_FAKEHOST);
sendcmdto_serv_butone(sptr, CMD_FAKEHOST_OLD, cptr, "%C %s", target,
cli_user(target)->fakehost);