if (data)
style = atoi(data);
- if (style == 1)
+ if ((style == 1) || (style == 3))
snprintf(buffer, sizeof(buffer), "%s.%s", handle->handle, hidden_host_suffix);
else if (style == 2) {
/* Due to the way fakehost is coded theres no way i can
if (data)
style = atoi(data);
- if ((style == 1) && user->handle_info && hidden_host_suffix && !(options & GENMASK_NO_HIDING)) {
+ if (((style == 1) || (style == 3)) && user->handle_info && hidden_host_suffix && !(options & GENMASK_NO_HIDING)) {
hostname = alloca(strlen(user->handle_info->handle) + strlen(hidden_host_suffix) + 2);
sprintf(hostname, "%s.%s", user->handle_info->handle, hidden_host_suffix);
- } else if ((style == 2) && !(options & GENMASK_NO_HIDING)) {
+ } else if (((style == 2) || (style == 3)) && !(options & GENMASK_NO_HIDING)) {
hostname = alloca(strlen(user->crypthost));
sprintf(hostname, "%s", user->crypthost);
}
safestrncpy(sident, who->ident, sizeof(shost));
safestrncpy(shost, host, sizeof(shost));
- } else if (IsHiddenHost(who) && (hhtype == 1) && who->handle_info && hhstr) {
+ } else if (IsHiddenHost(who) && ((hhtype == 1) || (hhtype == 3)) && who->handle_info && hhstr) {
snprintf(shost, sizeof(shost), "%s.%s", who->handle_info->handle, hhstr);
- } else if (IsHiddenHost(who) && (hhtype == 2) && who->crypthost[0]) {
+ } else if (IsHiddenHost(who) && ((hhtype == 2) || (hhtype == 3)) && who->crypthost[0]) {
safestrncpy(shost, who->crypthost, sizeof(shost));
} else
safestrncpy(shost, who->hostname, sizeof(shost));