From 05cb916ae5e45ba41b0d77daebce2c51d6fa4f55 Mon Sep 17 00:00:00 2001 From: "." <.@.> Date: Sat, 7 May 2016 17:51:45 +1200 Subject: [PATCH] fix malformed PRIVMSG causing crashes in andchat --HG-- branch : nmdc-ircfrontend --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index df338d8..76a72ed 100644 --- a/server.go +++ b/server.go @@ -540,7 +540,7 @@ func (s *Server) reply(code replyCode, args ...string) { s.writeClient(fmt.Sprintf(":%s KILL %s A %s", args[0], s.upstreamLauncher.Self.Nick, args[1])) case rplMsg: for _, itm := range strings.Split(args[2], "\n") { - s.writeClient(fmt.Sprintf(":%s PRIVMSG %s %s", args[0], args[1], itm)) + s.writeClient(fmt.Sprintf(":%s PRIVMSG %s :%s", args[0], args[1], itm)) } case rplList: s.writeClient(fmt.Sprintf(":%s 322 %s %s", s.name, s.upstreamLauncher.Self.Nick, args[0]))