Do not try to ban outcasts, they already banned

This commit is contained in:
eleksir
2023-10-02 09:59:05 -07:00
parent 8a4a1ae6b7
commit 5b730c9684

View File

@@ -636,6 +636,7 @@ func parseEvent(e interface{}) { //nolint:maintidx,gocognit,gocyclo
// По правилам, мы можем что-то делать, только после того, как нам прилетит наш собственный presence, это
// значит, что мы вошли в комнату.
if slices.Contains(roomsConnected, room) {
if v.Affiliation != "outcast" {
if err := bunyPresense(v); err != nil {
gTomb.Kill(err)
@@ -643,6 +644,7 @@ func parseEvent(e interface{}) { //nolint:maintidx,gocognit,gocyclo
}
}
}
}
// Ответ на запрос поддерживаемых фич, который "http://jabber.org/protocol/disco#info"
case xmpp.DiscoResult: