Less "Nickname change presence?" warnings

This commit is contained in:
Bohdan Horbeshko 2025-05-08 21:53:53 -04:00
parent 6a8a96a4f4
commit 0500b3535f

View file

@ -536,13 +536,6 @@ func handleMUCPresence(s xmpp.Sender, p stanza.Presence, mucExt stanza.MucPresen
} }
func tryHandleMUCNicknameChange(s xmpp.Sender, p stanza.Presence) { func tryHandleMUCNicknameChange(s xmpp.Sender, p stanza.Presence) {
log.WithFields(log.Fields{
"type": p.Type,
"from": p.From,
"to": p.To,
}).Warn("Nickname change presence?")
log.Debugf("%#v", p)
if p.Type != "" { if p.Type != "" {
return return
} }
@ -552,6 +545,13 @@ func tryHandleMUCNicknameChange(s xmpp.Sender, p stanza.Presence) {
return return
} }
log.WithFields(log.Fields{
"type": p.Type,
"from": p.From,
"to": p.To,
}).Warn("Nickname change presence?")
log.Debugf("%#v", p)
fromBare, fromResource, ok := gateway.SplitJID(p.From) fromBare, fromResource, ok := gateway.SplitJID(p.From)
if !ok { if !ok {
return return