From 272e4a7d33430e84bcea3edb427bad1c037a473e Mon Sep 17 00:00:00 2001 From: Ed Kellett Date: Thu, 22 Oct 2020 16:58:23 +0100 Subject: [PATCH] cap_realhost: Don't send realhost to non-opers If they can see it it's already in the message source --- extensions/cap_realhost.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/extensions/cap_realhost.c b/extensions/cap_realhost.c index 46de2532..b7ee9f42 100644 --- a/extensions/cap_realhost.c +++ b/extensions/cap_realhost.c @@ -76,12 +76,7 @@ cap_realhost_outbound_msgbuf(void *data_) } if (!EmptyString(data->client->orighost)) - { - if (IsDynSpoof(data->client)) - msgbuf_append_tag(msgbuf, "solanum.chat/realhost", data->client->orighost, CLICAP_OPER_REALHOST); - else - msgbuf_append_tag(msgbuf, "solanum.chat/realhost", data->client->orighost, CLICAP_REALHOST); - } + msgbuf_append_tag(msgbuf, "solanum.chat/realhost", data->client->orighost, CLICAP_OPER_REALHOST); } static inline void