commit 440f12923f6edd85f3a32907380b7a3b3f5b55fa
parent f49c9d48e342615f5c327c319b5319c4e12aa457
Author: sin <sin@2f30.org>
Date: Thu, 2 May 2013 17:52:52 +0100
trim extra newlines for PONG reply
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/irc/irc.go b/src/irc/irc.go
@@ -166,7 +166,7 @@ func (i *IrcContext) readLoop() error {
if strings.HasPrefix(s, "PING :") {
r := strings.Replace(s, "PING :", "PONG :", 6)
- r = r + "\r\n"
+ r = strings.TrimSpace(r) + "\r\n"
err := i.TxRawMessage([]byte(r))
if err != nil {
return err