From d9f1c8e1c48a254e8d9f086d06bc9c2e7c496272 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Thu, 24 Sep 2020 07:25:04 -0400 Subject: [PATCH] require local_ban capab to see uncloaked IPs --- irc/nickserv.go | 2 +- irc/server.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/irc/nickserv.go b/irc/nickserv.go index 86bde678..e0f78065 100644 --- a/irc/nickserv.go +++ b/irc/nickserv.go @@ -1103,7 +1103,7 @@ func nsClientsHandler(server *Server, client *Client, command string, params []s func nsClientsListHandler(server *Server, client *Client, params []string, rb *ResponseBuffer) { target := client - hasPrivs := client.HasRoleCapabs("accreg") + hasPrivs := client.HasRoleCapabs("local_ban") if 0 < len(params) { target = server.clients.Get(params[0]) if target == nil { diff --git a/irc/server.go b/irc/server.go index f6cfd87e..11e8ddd7 100644 --- a/irc/server.go +++ b/irc/server.go @@ -443,7 +443,7 @@ func (client *Client) getWhoisOf(target *Client, rb *ResponseBuffer) { if tOper != nil { rb.Add(nil, client.server.name, RPL_WHOISOPERATOR, cnick, tnick, tOper.WhoisLine) } - if client.HasMode(modes.Operator) || client == target { + if client == target || client.HasRoleCapabs("local_ban") { rb.Add(nil, client.server.name, RPL_WHOISACTUALLY, cnick, tnick, fmt.Sprintf("%s@%s", targetInfo.username, target.RawHostname()), target.IPString(), client.t("Actual user@host, Actual IP")) } if target.HasMode(modes.TLS) {