errors

package
v0.0.0-...-2ab1e11 Latest Latest
Warning

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

Go to latest
Published: May 1, 2015 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// Returned when a nickname parameter expected for a command and isn't found.
	//
	// ":No nickname given"
	ERR_NONICKNAMEGIVEN = "431"

	// Returned when a NICK message is processed that results in an attempt to
	// change to a currently existing nickname.
	//
	// "<nick> :Nickname is already in use"
	ERR_NICKNAMEINUSE = "433"

	// Returned by the server whenever a client tries to perform a channel
	// affecting command for which the client isn't a member.
	//
	// "<channel> :You're not on that channel"
	ERR_NOTONCHANNEL = "442"

	// Returned when a client tries to invite a user to a
	// channel they are already on.
	//
	// "<user> <channel> :is already on channel"
	ERR_USERONCHANNEL = "443"

	// Returned by the server by numerous commands to indicate to the client that
	// it didn't supply enough parameters.
	//
	// "<command> :Not enough parameters"
	ERR_NEEDMOREPARAMS = "461"

	// Returned by the server to any link which tries to change part of the
	// registered details (such as password or user details from second USER
	// message).
	//
	// ":Unauthorized command (already registered)"
	ERR_ALREADYREGISTRED = "462"

	// Used to indicate the nickname parameter supplied to a command is currently
	// unused.
	//
	// "<nickname> :No such nick/channel"
	ERR_NOSUCHNICK = "401"
)

Variables

This section is empty.

Functions

func AlreadyRegistered

func AlreadyRegistered(host string) message.M

func NeedMoreParams

func NeedMoreParams(host, command string) message.M

func NicknameInUse

func NicknameInUse(host, nick string) message.M

func NoNicknameGiven

func NoNicknameGiven(host string) message.M

func NoSuchNick

func NoSuchNick(host, nick string) message.M

func NotOnChannel

func NotOnChannel(host, channel string) message.M

func UserOnChannel

func UserOnChannel(host, nick, channel string) message.M

Types

This section is empty.

Jump to

Keyboard shortcuts

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