bans

package
v0.0.0-...-e6cb9b4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ArrayBanRecords []EntBanRecord
View Source
var ChanAcceptBan = make(chan string) //locks Players
View Source
var ChanAutoBanSmurfs = make(chan []string) //locks Players
View Source
var ChanBanManual = make(chan EntManualBanReq) //locks Players
View Source
var ChanBanRQ = make(chan EntAutoBanReq) //locks Players
View Source
var ChanDeleteBan = make(chan int64) //locks Players
View Source
var ChanLock = make(chan bool)
View Source
var ChanSearchBan = make(chan string) //locks Players
View Source
var ChanUnbanManual = make(chan string) //locks Players
View Source
var ChanUnlock = make(chan bool)

Functions

func AcceptBan

func AcceptBan(sSteamID64 string)

func AddRecord

func AddRecord(oBanRecord EntBanRecord)

func ApplyBanToPlayer

func ApplyBanToPlayer(sSteamID64 string, iAccess int, sBanReason string, i64BannedAt int64, i64BanLength int64, i64AcceptedAt int64)

func BanExcessiveSmurfs

func BanExcessiveSmurfs(arAccounts []string)

func BanIfSmurfBanned

func BanIfSmurfBanned(arAccounts []string)

func BanManual

func BanManual(oBanReq EntManualBanReq)

func BanRagequitter

func BanRagequitter(oBanReq EntAutoBanReq)

func DeleteBan

func DeleteBan(i64CreatedAt int64)

func RestoreBans

func RestoreBans() bool

func SearchBan

func SearchBan(sSteamID64 string)

func UnbanManual

func UnbanManual(sSteamID64 string)

func WatchChannels

func WatchChannels()

func WatchUnbans

func WatchUnbans()

func Watchers

func Watchers()

Types

type EntAutoBanReq

type EntAutoBanReq struct {
	SteamID64      string
	NicknameBase64 string
}

type EntBanRecord

type EntBanRecord struct {
	NicknameBase64    string
	SteamID64         string
	Access            int
	BannedBySteamID64 string
	CreatedAt         int64 //unix timestamp in milliseconds //must keep it unique (which means 1 new ban record per 1ms at most)
	AcceptedAt        int64 //unix timestamp in milliseconds
	BanLength         int64 //unix time in milliseconds
	BanReasonBase64   string
}

type EntManualBanReq

type EntManualBanReq struct {
	SteamID64   string
	Access      int
	Nickname    string
	Reason      string
	BanLength   int64
	RequestedBy string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL