Documentation ¶
Index ¶
- Variables
- func SplitIrcPrefix(s string, availablePrefixes []rune) (prefixes []rune, rest string)
- type ChanMode
- type ChanModeType
- type Plugin
- type Prefixes
- type Support
- func (s *Support) CaseMapping() (retval string, ok bool)
- func (s *Support) ChanLimit() (retval map[rune]uint64, ok bool)
- func (s *Support) ChanModes() (retval []ChanMode, ok bool)
- func (s *Support) ChanTypes() (retval []rune, ok bool)
- func (s *Support) Excepts() (retval rune, ok bool)
- func (s *Support) InviteExcepts() (retval rune, ok bool)
- func (s *Support) MaxBans() (retval uint64, ok bool)
- func (s *Support) MaxChannels() (retval uint64, ok bool)
- func (s *Support) MaxList() (retval map[rune]uint64, ok bool)
- func (s *Support) Modes() (retval uint64, ok bool)
- func (s *Support) Prefix() (retval *Prefixes, ok bool)
- func (s *Support) StatusMsg() (retval []rune, ok bool)
Constants ¶
This section is empty.
Variables ¶
var DefaultChanTypes = []rune("#&")
var DefaultPrefixLetters = []rune("vo")
var DefaultPrefixSymbols = []rune("+@")
Functions ¶
Types ¶
type ChanMode ¶
type ChanMode struct { Type ChanModeType Mode rune }
type ChanModeType ¶
type ChanModeType byte
const ( // Mode that adds or removes a nick or address to a list. // Always has a parameter. ChanModeType_List ChanModeType = iota // Mode that changes a setting. // Always has a parameter. ChanModeType_Setting // Mode that changes a setting. // Only has a parameter when set. ChanModeType_Setting_ParamWhenSet // Mode that changes a setting. // Never has a parameter. ChanModeType_Setting_NoParam )
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
type Prefixes ¶
func (*Prefixes) LetterToSymbol ¶
type Support ¶
func (*Support) CaseMapping ¶
Case mapping used for nick- and channel name comparing.
Current possible values:
- ascii: The chars [a-z] are lowercase of [A-Z].
- rfc1459: ascii with additional {}|~ the lowercase of []\^.
- strict-rfc1459: ascii with additional {}| the lowercase of []\.
Note: RFC1459 forgot to mention the ~ and ^ although in all known implementations those are considered equivalent too.
func (*Support) ChanModes ¶
Returns the list of channel modes according to 4 types. They are documented with the ChanModeType constants.
func (*Support) Excepts ¶
The server supports ban exceptions (e mode). See RFC 2811 for more information.
func (*Support) InviteExcepts ¶
The server supports invite exceptions (+I mode). See RFC 2811 for more information.
func (*Support) MaxBans ¶
Maximum number of bans per channel.
Note: This has been replaced by MAXLIST.
func (*Support) MaxChannels ¶
Maximum number of channels allowed to join.
Note: This has been replaced by CHANLIMIT.
func (*Support) Modes ¶
Returns maximum number of channel modes with parameter allowed per MODE command.
func (*Support) Prefix ¶
Returns a list of channel modes a person can get and the respective prefix a channel or nickname will get in case the person has it. The order of the modes goes from most powerful to least powerful. Those prefixes are shown in the output of the WHOIS, WHO and NAMES command.
Note: Some servers only show the most powerful, others may show all of them.