git://git.furryclan.net
/
furrycat
/
catbot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f39d01
)
Handle newlines in announce create.
author
CMDR furrycat
<elite@furrycat.net>
Mon, 10 Oct 2016 10:18:27 +0000
(11:18 +0100)
committer
CMDR furrycat
<elite@furrycat.net>
Mon, 10 Oct 2016 10:18:27 +0000
(11:18 +0100)
bot.py
patch
|
blob
|
history
diff --git
a/bot.py
b/bot.py
index
9b0e739
..
6a65d80
100755
(executable)
--- 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