1
0
Fork 0
mirror of https://github.com/fluffle/goirc synced 2025-06-30 18:43:55 +00:00
goirc/server/config/ban.go
2010-11-21 20:07:31 +00:00

33 lines
606 B
Go

package config
type cBan interface {
Match(string) bool
Reason() string
}
// G-Line etc;
type cBanNick struct {
NickMask string // nick!ident@host
Reason string
}
// Z-Line
type cBanIP struct {
Address string // ip (or hostname), plus optional CIDR netmask
Reason string
ip string // parsed into these
cidr int
}
// CTCP version ban
type cBanVersion struct {
VersionRegex string // regex to match against version reply
Reason string
}
// Ban server from linking to network
type cBanServer struct {
ServerMask string // matched against name of linked server
Reason string
}