mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-11 06:29:29 +01:00
36 lines
901 B
Go
36 lines
901 B
Go
|
// Package sno holds Server Notice masks for easy reference.
|
||
|
package sno
|
||
|
|
||
|
// Mask is a type of server notice mask.
|
||
|
type Mask rune
|
||
|
|
||
|
// Notice mask types
|
||
|
const (
|
||
|
LocalAccouncements Mask = 'a'
|
||
|
LocalConnects Mask = 'c'
|
||
|
LocalChannels Mask = 'j'
|
||
|
LocalKills Mask = 'k'
|
||
|
LocalNicks Mask = 'n'
|
||
|
LocalOpers Mask = 'o'
|
||
|
LocalQuits Mask = 'q'
|
||
|
Stats Mask = 't'
|
||
|
LocalAccounts Mask = 'u'
|
||
|
LocalXline Mask = 'x'
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
// NoticeMaskNames has readable names for our snomask types.
|
||
|
NoticeMaskNames = map[Mask]string{
|
||
|
LocalAccouncements: "ANNOUNCEMENT",
|
||
|
LocalConnects: "CONNECT",
|
||
|
LocalChannels: "CHANNEL",
|
||
|
LocalKills: "KILL",
|
||
|
LocalNicks: "NICK",
|
||
|
LocalOpers: "OPER",
|
||
|
LocalQuits: "QUIT",
|
||
|
Stats: "STATS",
|
||
|
LocalAccounts: "ACCOUNT",
|
||
|
LocalXline: "XLINE",
|
||
|
}
|
||
|
)
|