Ensure multiline message after line_treat are collapsed to one line

This commit is contained in:
nemunaire 2014-09-24 10:53:16 +02:00
parent acded35e1a
commit cdaad47b13
2 changed files with 2 additions and 1 deletions

View file

@ -80,6 +80,7 @@ def cmd_mediawiki(msg):
raise IRCException("indicate a domain and a term to search")
return Response(get_page(msg.cmds[1], " ".join(msg.cmds[2:])),
line_treat=lambda line: irc_format(parse_wikitext(msg.cmds[1], line)),
channel=msg.receivers)