diff --git a/scripts/doge.coffee b/scripts/doge.coffee index f3c1727..01853cb 100644 --- a/scripts/doge.coffee +++ b/scripts/doge.coffee @@ -32,7 +32,7 @@ module.exports = (robot) -> peer: x[2].replace chat + ' ', '' text: x[3].trim() run_command "history #{chat} #{size}", (lines) -> - callback (parse_line i.match regex for i in lines.split '\n') + callback (parse_line i.match regex for i in lines) robot.respond /doge(?: (\d+))?/, (res) -> n = res.match[1] || 10