Example #1
0
func Pong(host, address string) message.M {
	return message.Message3(
		message.Prefix(host),
		"PONG",
		message.Params([]string{address}))
}
Example #2
0
func EndOfWho(host, user, subject string) message.M {
	return message.Message3(
		message.Prefix(host),
		RPL_ENDOFWHO,
		message.Params([]string{user, subject}))
}
Example #3
0
func UserModeIs(host, nick string) message.M {
	return message.Message3(
		message.Prefix(host),
		RPL_UMODEIS,
		message.Params([]string{nick, "+"}))
}
Example #4
0
func Nick(oldName, newName string) message.M {
	return message.Message3(
		message.Prefix(oldName),
		"NICK",
		message.Params([]string{newName}))
}
Example #5
0
func Welcome(serverName, nickName string) message.M {
	return message.Message3(
		message.Prefix(serverName),
		RPL_WELCOME,
		message.Params([]string{nickName}))
}
Example #6
0
func ChannelModeIs(host, nick, channel string) message.M {
	return message.Message3(
		message.Prefix(host),
		RPL_CHANNELMODEIS,
		message.Params([]string{nick, channel, "+"}))
}