fix malformed PRIVMSG causing crashes in andchat
--HG-- branch : nmdc-ircfrontend
This commit is contained in:
parent
98e8ef43ba
commit
05cb916ae5
@ -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]))
|
||||
|
Loading…
Reference in New Issue
Block a user