/* RPL_END_USERS 394 Dalnet/EFnet/IRCnet */
/* RPL_NOUSERS 395 Dalnet/EFnet/IRCnet */
#define RPL_HOSTHIDDEN 396 /* UMODE +x completed succesfuly */
-#define RPL_HOSTIDENTHIDDEN 397 /* UMODE +x completed succesfuly (with USERNAME change) */
+#define RPL_HOSTUSERHIDDEN 397 /* UMODE +x completed succesfuly (with USERNAME change) */
/*
* Errors are in the range from 400-599 currently and are grouped by what
}
/* Set fakehost and propagate the changed host. */
- ircd_strncpy(cli_user(target)->username, parv[2], USERLEN);
ircd_strncpy(cli_user(target)->fakehost, parv[3], HOSTLEN);
- hide_hostmask(target, FLAG_FAKEHOST);
+ hide_ident_hostmask(target, FLAG_FAKEHOST, parv[2]);
sendcmdto_serv_butone(sptr, CMD_FAKEHOST2, cptr, "%C %s %s", target, parv[2], parv[3]);
/* 396 */
{ RPL_HOSTHIDDEN, "%s :is now your hidden host", "396" },
/* 397 */
- { RPL_HOSTIDENTHIDDEN, "%s@%s :is now your hidden username@host", "397" },
+ { RPL_HOSTUSERHIDDEN, "%s@%s :is now your hidden username@host", "397" },
/* 398 */
{ 0 },
/* 399 */
* @param[in] flag Some flag that affects host-hiding (FLAG_HIDDENHOST, FLAG_ACCOUNT, FLAG_FAKEHOST).
* @return Zero.
*/
-
+
int
hide_hostmask(struct Client *cptr, unsigned int flag) {
- return hide_hostmask(chptr, flag, NULL);
+ return hide_ident_hostmask(cptr, flag, NULL);
}
int
-hide_hostmask(struct Client *cptr, unsigned int flag, char *username)
+hide_ident_hostmask(struct Client *cptr, unsigned int flag, char *username)
{
struct Membership *chan;
char buf[HOSTLEN];