mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
pointless optimization
This commit is contained in:
parent
1bbf6ab936
commit
a6d793a2d5
2 changed files with 5 additions and 3 deletions
|
|
@ -1116,7 +1116,7 @@ func nsClientsListHandler(server *Server, client *Client, params []string, rb *R
|
|||
}
|
||||
}
|
||||
|
||||
sessionData, currentIndex := target.AllSessionData(rb.session)
|
||||
sessionData, currentIndex := target.AllSessionData(rb.session, hasPrivs)
|
||||
nsNotice(rb, fmt.Sprintf(client.t("Nickname %[1]s has %[2]d attached clients(s)"), target.Nick(), len(sessionData)))
|
||||
for i, session := range sessionData {
|
||||
if currentIndex == i {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue