From 65108cffea52f9631f405f06e19a649b2e8f3fac Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Thu, 1 Oct 2015 01:23:52 +0200 Subject: [PATCH] Fix dreadful type error --- scripts/doge.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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