#include "s_bsd.h"
#include "s_conf.h"
#include "s_user.h"
+#include "s_debug.h"
#include "send.h"
-
/*
* m_fakehost - fakehost user message handler
*
}
/* Ignore the assignment if it changes nothing. */
- if(IsFakeHost(target) && strcmp(cli_user(target)->fakehost, parv[3]) == 0 && strcmp(cli_user(target)->username, parv[2]) == 0) {
+ if(IsFakeHost(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)->username, parv[2], USERLEN);
ircd_strncpy(cli_user(target)->fakehost, parv[3], HOSTLEN);
- hide_hostmask(target, FLAG_FAKEHOST);
+ ircd_strncpy(cli_user(target)->fakeuser, parv[2], USERLEN);
+ hide_hostmask(target, FLAG_FAKEHOST | FLAG_FAKEIDENT);
- sendcmdto_serv_butone(sptr, CMD_FAKEHOST2, cptr, "%C %s %s", target, parv[2], parv[3]);
+ sendcmdto_serv_butone(sptr, CMD_FAKEHOST2, cptr, "%C %s %s", target, cli_user(target)->fakeuser, cli_user(target)->fakehost);
return 0;
}
* parv[0] = sender prefix
* parv[1] = target user numeric
* parv[2] = target user's new fake host
+ * parv[3] = target user's new fake ident
*/
int ms_fakehost_old(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) {
struct Client *target;