fix display for botGetClients
This commit is contained in:
parent
901e7adf78
commit
36aef03b87
4
bot.go
4
bot.go
@ -172,9 +172,9 @@ func botGetClients(m *tb.Message) {
|
|||||||
var ret string
|
var ret string
|
||||||
for id, c := range clients {
|
for id, c := range clients {
|
||||||
if c.Active {
|
if c.Active {
|
||||||
ret = fmt.Sprintf("%s%s | UserID : %d | TelegramID : %d (online)\n", ret, c.MQ.User, c.CWUserID64, id)
|
ret = fmt.Sprintf("%s%s | UserID : %d | TelegramID : %d (online)\n", ret, c.Login, c.CWUserID64, id)
|
||||||
} else {
|
} else {
|
||||||
ret = fmt.Sprintf("%s%s | UserID : %d | TelegramID : %d (offline)\n", ret, c.MQ.User, c.CWUserID64, id)
|
ret = fmt.Sprintf("%s%s | UserID : %d | TelegramID : %d (offline)\n", ret, c.Login, c.CWUserID64, id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
muxClients.RUnlock()
|
muxClients.RUnlock()
|
||||||
|
Loading…
Reference in New Issue
Block a user