Do not try to ban outcasts, they already banned
This commit is contained in:
@@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user