Skip to content

Commit

Permalink
Last second fix == formatting regrets.
Browse files Browse the repository at this point in the history
  • Loading branch information
gbin committed Jul 4, 2017
1 parent d13187c commit ec0d59d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions errbot/backends/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,13 +302,17 @@ def serve_forever(self):
prompt = '[␍] ' if multiline else '>>> '
if ANSI or self.demo_mode:
color = fg.red if self.user.person in self.bot_config.BOT_ADMINS[0] else fg.green
entry = input(str(color) + '[%s ➡ %s] ' % (frm, to) + str(fg.cyan) + prompt + str(fx.reset))
entry = input(str(color) +
'[%s ➡ %s] ' % (frm, to) +
str(fg.cyan) +
prompt +
str(fx.reset))
else:
entry = input('[%s ➡ %s] ' % (frm, to) + prompt)
if not entry:
break
multiline += entry + '\n'

msg = Message(multiline)
msg.frm = frm
msg.to = to
Expand Down

0 comments on commit ec0d59d

Please sign in to comment.