From 92e2aa987ea358858d08579a68e9b106e476824d Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Wed, 15 Jan 2025 22:12:40 -0500 Subject: [PATCH] move debug log ID within NS CLIENTS LIST output --- irc/nickserv.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/irc/nickserv.go b/irc/nickserv.go index 9a776d06..8adb0c08 100644 --- a/irc/nickserv.go +++ b/irc/nickserv.go @@ -1324,6 +1324,9 @@ func nsClientsListHandler(service *ircService, server *Server, client *Client, p if session.deviceID != "" { service.Notice(rb, fmt.Sprintf(client.t("Device ID: %s"), session.deviceID)) } + if hasPrivs { + service.Notice(rb, fmt.Sprintf(client.t("Debug log ID: %s"), session.connID)) + } service.Notice(rb, fmt.Sprintf(client.t("IP address: %s"), session.ip.String())) service.Notice(rb, fmt.Sprintf(client.t("Hostname: %s"), session.hostname)) if hasPrivs { @@ -1339,9 +1342,6 @@ func nsClientsListHandler(service *ircService, server *Server, client *Client, p service.Notice(rb, fmt.Sprintf(client.t("IRCv3 CAPs: %s"), capStr)) } } - if hasPrivs { - service.Notice(rb, fmt.Sprintf(client.t("Debug log ID: %s"), session.connID)) - } } }