Allow ascii in rooms, changed themes

This commit is contained in:
James Booth
2016-02-25 02:02:02 +00:00
parent bb8bb9de5c
commit fe1585ecfd
3 changed files with 5 additions and 4 deletions

View File

@@ -3,7 +3,8 @@ import subprocess
def _cmd_ascii(text):
recipient = prof.get_current_recipient()
if recipient:
room = prof.get_current_muc()
if recipient or room:
proc = subprocess.Popen(['figlet', '--', text], stdout=subprocess.PIPE)
ascii_out = proc.communicate()[0].decode('utf-8')
prof.send_line(u'\u000A' + ascii_out)