sum7
/
yaja
Archived
1
0
Fork 0
This commit is contained in:
Martin/Geno 2018-04-18 10:49:26 +02:00
parent c62a2573ea
commit 1c0caa4410
No known key found for this signature in database
GPG Key ID: 9D7D3C6BFF600C6A
2 changed files with 4 additions and 1 deletions

View File

@ -61,7 +61,7 @@ func (t *Tester) startBot(status *Status) {
case xmpp.PresenceTypeUnavailable:
logPres.Debug("recv presence unavailable")
default:
logCTX.Warnf("recv presence unsupported: %s -> %s", pres.Type, xmpp.XMLChildrenString(pres))
logPres.Warnf("recv presence unsupported: %s -> %s", pres.Type, xmpp.XMLChildrenString(pres))
}
case *xmpp.MessageClient:
msg := element.(*xmpp.MessageClient)

View File

@ -32,6 +32,9 @@ func (t *Tester) Output() *Output {
}
links := make(map[string]*Link)
t.mux.Lock()
defer t.mux.Unlock()
for from, status := range t.Status {
output.Status = append(output.Status, status)
if !status.Login {