versioning
This commit is contained in:
parent
02497ae7e2
commit
71403d83a4
3
bot.go
3
bot.go
@ -297,7 +297,7 @@ func botGetClients(m *tb.Message) {
|
||||
if clt, ok := getLockedClient(m.Chat.ID, false); ok {
|
||||
clt.Mux.Unlock()
|
||||
muxClients.RLock()
|
||||
var ret string
|
||||
ret = fmt.Sprintf("<code>Version %s (%s)", githash, buildstamp)
|
||||
for id, c := range clients {
|
||||
if c.Active {
|
||||
ret = fmt.Sprintf("%s%s | UserID : %d | TelegramID : %d (online)\n", ret, c.Login, c.CWUserID64, id)
|
||||
@ -305,6 +305,7 @@ func botGetClients(m *tb.Message) {
|
||||
ret = fmt.Sprintf("%s%s | UserID : %d | TelegramID : %d (offline)\n", ret, c.Login, c.CWUserID64, id)
|
||||
}
|
||||
}
|
||||
ret = fmt.Sprintf("%s</code>", ret)
|
||||
muxClients.RUnlock()
|
||||
|
||||
c := TGCommand{
|
||||
|
Loading…
Reference in New Issue
Block a user