mirror of
https://dev.narayana.im/narayana/telegabber.git
synced 2026-08-05 04:07:07 +00:00
Less "Nickname change presence?" warnings
This commit is contained in:
parent
6a8a96a4f4
commit
0500b3535f
1 changed files with 7 additions and 7 deletions
|
|
@ -536,13 +536,6 @@ func handleMUCPresence(s xmpp.Sender, p stanza.Presence, mucExt stanza.MucPresen
|
|||
}
|
||||
|
||||
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 != "" {
|
||||
return
|
||||
}
|
||||
|
|
@ -552,6 +545,13 @@ func tryHandleMUCNicknameChange(s xmpp.Sender, p stanza.Presence) {
|
|||
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)
|
||||
if !ok {
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in a new issue