3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-25 21:39:25 +01:00

adjust ping message

This commit is contained in:
Jeremy Latt 2014-02-20 19:22:08 -08:00
parent 52ffc77d8d
commit b6d8f62674
2 changed files with 2 additions and 2 deletions

View File

@ -643,7 +643,7 @@ func NewWhoCommand(args []string) (editableCommand, error) {
} }
func (msg *WhoCommand) String() string { func (msg *WhoCommand) String() string {
return fmt.Sprintf("WHO(mask=%s, operatorOnly=%s)", msg.mask, msg.operatorOnly) return fmt.Sprintf("WHO(mask=%s, operatorOnly=%t)", msg.mask, msg.operatorOnly)
} }
type OperCommand struct { type OperCommand struct {

View File

@ -98,7 +98,7 @@ func RplTopicMsg(source Identifier, channel *Channel) string {
} }
func RplPing(server *Server, target Identifier) string { func RplPing(server *Server, target Identifier) string {
return NewStringReply(server, PING, target.Nick()) return NewStringReply(server, PING, ":%s", target.Nick())
} }
func RplPong(server *Server, client *Client) string { func RplPong(server *Server, client *Client) string {