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,10 +636,12 @@ func parseEvent(e interface{}) { //nolint:maintidx,gocognit,gocyclo
// По правилам, мы можем что-то делать, только после того, как нам прилетит наш собственный presence, это // По правилам, мы можем что-то делать, только после того, как нам прилетит наш собственный presence, это
// значит, что мы вошли в комнату. // значит, что мы вошли в комнату.
if slices.Contains(roomsConnected, room) { if slices.Contains(roomsConnected, room) {
if err := bunyPresense(v); err != nil { if v.Affiliation != "outcast" {
gTomb.Kill(err) if err := bunyPresense(v); err != nil {
gTomb.Kill(err)
return return
}
} }
} }
} }