X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fs_user.c;fp=ircd%2Fs_user.c;h=f8d5b94e15ed72ae3ca6b8b4552735106acf83c2;hb=73286bcf466860bb2d095e97b1a16e8a135b51d3;hp=d2342620e8f812fedd5b96dfbd12ef9d929e85de;hpb=bae6ea42e84d8783475ef65b6911586f42d0318d;p=ircu2.10.12-pk.git diff --git a/ircd/s_user.c b/ircd/s_user.c index d234262..f8d5b94 100644 --- a/ircd/s_user.c +++ b/ircd/s_user.c @@ -734,24 +734,6 @@ int set_nick_name(struct Client* cptr, struct Client* sptr, return 0; } -/* Refreshs the users host to the current fakehost. If no fakehost - * is set, the account-host is created. If no Account is set, - * nothing is done. - * Returns 1 if the host changed and 0 if not. - */ -int apply_fakehost(struct Client *cptr) { - char buf[HOSTLEN]; - if(IsFakeHost(cptr)) { - ircd_strncpy(buf, cli_user(cptr)->fakehost, HOSTLEN); - } - else if (IsAccount(cptr)) { - ircd_snprintf(0, buf, HOSTLEN, "%s.%s", cli_user(cptr)->account, feature_str(FEAT_HIDDEN_HOST)); - } - if(strncmp(buf, cli_user(cptr)->host, HOSTLEN) == 0) return 0; - ircd_strncpy(cli_user(cptr)->host, buf, HOSTLEN); - return 1; -} - /** Calculate the hash value for a target. * @param[in] target Pointer to target, cast to unsigned int. * @return Hash value constructed from the pointer.