From c803dfe9de830f503732ed6a4e38befe95c7513f Mon Sep 17 00:00:00 2001 From: CMDR furrycat Date: Mon, 10 Oct 2016 11:18:27 +0100 Subject: [PATCH] Handle newlines in announce create. --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 9b0e739..6a65d80 100755 --- a/bot.py +++ b/bot.py @@ -1188,7 +1188,7 @@ def schedule_announcement(message, id, **args): def manage_announcements(message, command, raw): log.debug('Command: {}'.format(raw)) - m = re.match(r'announce(?:ment)?\s+(.+)', raw, re.IGNORECASE) + m = re.match(r'announce(?:ment)?\s+(.+)', raw, re.IGNORECASE | re.DOTALL) if m is None: yield from list_announcements(message) return -- 2.7.4