From c90f9b92ce0fc574373e5938ebf725dd22d5a137 Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Mon, 21 Oct 2013 13:21:26 +0100 Subject: [PATCH] Fixed MOTD for weechat --- client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.go b/client.go index b7bbf69..d52c8d9 100644 --- a/client.go +++ b/client.go @@ -177,7 +177,7 @@ func (c *Client) reply(code replyCode, args ...string) { c.outputChan <- fmt.Sprintf(":%s 351 %s %s", c.server.name, c.nick, args[0]) case rplMOTD: motd := args[0] - c.outputChan <- fmt.Sprintf(":%s 375 %s", c.server.name, c.nick) + c.outputChan <- fmt.Sprintf(":%s 375 %s :- Message of the day - ", c.server.name, c.nick) for size := len(motd); size > 0; size = len(motd) { if size <= 80 { c.outputChan <- fmt.Sprintf(":%s 372 %s :- %s", c.server.name, c.nick, motd) @@ -186,7 +186,7 @@ func (c *Client) reply(code replyCode, args ...string) { c.outputChan <- fmt.Sprintf(":%s 372 %s :- %s", c.server.name, c.nick, motd[:80]) motd = motd[80:] } - c.outputChan <- fmt.Sprintf(":%s 376 %s", c.server.name, c.nick) + c.outputChan <- fmt.Sprintf(":%s 376 %s :End of MOTD Command", c.server.name, c.nick) case errMoreArgs: c.outputChan <- fmt.Sprintf(":%s 461 %s :Not enough params", c.server.name, c.nick) case errNoNick: