client revamping compilation fix
This commit is contained in:
parent
6d58995d62
commit
76ac5fabaa
4
bot.go
4
bot.go
@ -172,9 +172,9 @@ func botGetClients(m *tb.Message) {
|
||||
var ret string
|
||||
for id, c := range clients {
|
||||
if c.Active {
|
||||
ret = fmt.Sprintf("%s%s | UserID : %d | TelegramID : %d (online)\n", ret, c.MQ.User, c.CWUserID64, c.TGUserID64)
|
||||
ret = fmt.Sprintf("%s%s | UserID : %d | TelegramID : %d (online)\n", ret, c.MQ.User, c.CWUserID64, id)
|
||||
} else {
|
||||
ret = fmt.Sprintf("%s%s | UserID : %d | TelegramID : %d (offline)\n", ret, c.MQ.User, c.CWUserID64, c.TGUserID64)
|
||||
ret = fmt.Sprintf("%s%s | UserID : %d | TelegramID : %d (offline)\n", ret, c.MQ.User, c.CWUserID64, id)
|
||||
}
|
||||
}
|
||||
muxClients.RUnlock()
|
||||
|
@ -580,7 +580,7 @@ func MQTidyKeepAliveWorker() {
|
||||
logOnError(err, "MQTidyKeepAliveWorker : Connection.Close()")
|
||||
cmd := TGCommand{
|
||||
Type: commandSendMsg,
|
||||
ToUserID64: clt.TGUserID64,
|
||||
ToUserID64: id,
|
||||
Text: "Timeout, purging and closing command queue.",
|
||||
}
|
||||
TGCmdQueue <- cmd
|
||||
|
Loading…
Reference in New Issue
Block a user