sno

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package sno holds Server Notice masks for easy reference.

Index

Constants

This section is empty.

Variables

View Source
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",
	}

	// ValidMasks contains the snomasks that we support.
	ValidMasks = map[Mask]bool{
		LocalAccouncements: true,
		LocalConnects:      true,
		LocalChannels:      true,
		LocalKills:         true,
		LocalNicks:         true,
		LocalOpers:         true,
		LocalQuits:         true,
		Stats:              true,
		LocalAccounts:      true,
		LocalXline:         true,
	}
)

Functions

This section is empty.

Types

type Mask

type Mask rune

Mask is a type of server notice mask.

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'
)

Notice mask types

Jump to

Keyboard shortcuts

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