This commit is contained in:
shoopea 2020-02-05 18:27:31 +08:00
parent 71403d83a4
commit 80367f8f8a

2
bot.go
View File

@ -297,7 +297,7 @@ func botGetClients(m *tb.Message) {
if clt, ok := getLockedClient(m.Chat.ID, false); ok { if clt, ok := getLockedClient(m.Chat.ID, false); ok {
clt.Mux.Unlock() clt.Mux.Unlock()
muxClients.RLock() muxClients.RLock()
ret = fmt.Sprintf("<code>Version %s (%s)", githash, buildstamp) ret := fmt.Sprintf("<code>Version %s (%s)", githash, buildstamp)
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.Login, c.CWUserID64, id) ret = fmt.Sprintf("%s%s | UserID : %d | TelegramID : %d (online)\n", ret, c.Login, c.CWUserID64, id)