]> jfr.im git - irc/freenode/solanum.git/commitdiff
cap_realhost: Don't send realhost to non-opers
authorEd Kellett <redacted>
Thu, 22 Oct 2020 15:58:23 +0000 (16:58 +0100)
committerEd Kellett <redacted>
Sat, 24 Oct 2020 15:19:52 +0000 (16:19 +0100)
If they can see it it's already in the message source

extensions/cap_realhost.c

index 46de2532e4a5e4efef6d4462f28624cb097b2217..b7ee9f42d60c20c61ea43553706c9a3638f6db33 100644 (file)
@@ -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