Documentation ¶
Index ¶
Constants ¶
View Source
const ( PermBTAdmin = "bantracker.admin" // Constant for assigning a permission to bantracker admins PermBTView = "bantracker.view" // Constant for assigning a permission to bantracker viewers PermBTPattern = "bantracker.%s.%s" )
Define constants
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Ban ¶ added in v0.0.5
type Ban struct { Source string Type string Pattern string Forward string Negation bool Raw string }
Ban tracks the type and pattern of each ban. If a $j ban, stores the sub bans
type BanList ¶ added in v0.0.5
type BanList struct {
// contains filtered or unexported fields
}
BanList stores the bans for a channel
type BanTracker ¶
type BanTracker struct {
// contains filtered or unexported fields
}
BanTracker is the base type for this plugin, all functionality is built on this
func (*BanTracker) GetMatchingBans ¶ added in v0.0.5
func (b *BanTracker) GetMatchingBans(channel string, user *channeltracker.User) []*Ban
Click to show internal directories.
Click to hide internal directories.