Allow ascii in rooms, changed themes
This commit is contained in:
3
ascii.py
3
ascii.py
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user