mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-18 13:38:10 -07:00
minimal who command
This commit is contained in:
@@ -239,6 +239,19 @@ func RplChannelModeIs(server *Server, channel *Channel) Reply {
|
||||
channel.name, channel.ModeString())
|
||||
}
|
||||
|
||||
// <channel> <user> <host> <server> <nick> ( "H" / "G" ) ["*"] [ ( "@" / "+" ) ]
|
||||
// :<hopcount> <real name>
|
||||
func RplWhoReply(server *Server, channel *Channel, client *Client) Reply {
|
||||
return NewNumericReply(server, RPL_WHOREPLY, "%s %s %s %s %s H :0 %s",
|
||||
channel.name, client.username, client.hostname, server.name, client.nick,
|
||||
client.realname)
|
||||
}
|
||||
|
||||
// <name> :End of WHO list
|
||||
func RplEndOfWho(server *Server, name string) Reply {
|
||||
return NewNumericReply(server, RPL_ENDOFWHO, "%s :End of WHO list", name)
|
||||
}
|
||||
|
||||
// errors (also numeric)
|
||||
|
||||
func ErrAlreadyRegistered(source Identifier) Reply {
|
||||
|
||||
Reference in New Issue
Block a user