Skip to content

Commit

Permalink
split FIFO messages on \n
Browse files Browse the repository at this point in the history
  • Loading branch information
stapelberg committed Jan 31, 2020
1 parent eac19aa commit bb177c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/plutabot/plutabot.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ func logic(fifo string) error {
if text == "" {
continue
}
cmd(irc.PRIVMSG, "#chaos-hd", text)
for _, line := range strings.Split(text, "\n") {
cmd(irc.PRIVMSG, "#chaos-hd", line)
}
}
}()
}
Expand Down

0 comments on commit bb177c7

Please sign in to comment.