From b6d8f6267479472320999750aeed76bb0f4b87f1 Mon Sep 17 00:00:00 2001 From: Jeremy Latt Date: Thu, 20 Feb 2014 19:22:08 -0800 Subject: [PATCH] adjust ping message --- irc/commands.go | 2 +- irc/reply.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/irc/commands.go b/irc/commands.go index b882d436..e082e53e 100644 --- a/irc/commands.go +++ b/irc/commands.go @@ -643,7 +643,7 @@ func NewWhoCommand(args []string) (editableCommand, error) { } 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 { diff --git a/irc/reply.go b/irc/reply.go index aaa466d6..47922443 100644 --- a/irc/reply.go +++ b/irc/reply.go @@ -98,7 +98,7 @@ func RplTopicMsg(source Identifier, channel *Channel) 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 {