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)
|
||||
|
||||
@@ -11,9 +11,9 @@ cmd_pid(char **args)
|
||||
pid_t ppid = getppid();
|
||||
char buf[50];
|
||||
sprintf(buf, "PID: %d", pid);
|
||||
prof_cons_show_themed("pid", "self", "bold_cyan", buf);
|
||||
prof_cons_show_themed("pid", "self", NULL, buf);
|
||||
sprintf(buf, "Parent PID: %d", ppid);
|
||||
prof_cons_show_themed("pid", "parent", "cyan", buf);
|
||||
prof_cons_show_themed("pid", "parent", NULL, buf);
|
||||
prof_cons_alert();
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import platform
|
||||
|
||||
def _cmd_platform():
|
||||
result_summary = platform.platform()
|
||||
prof.cons_show(result_summary)
|
||||
prof.cons_show_themed("platform", "line", None, result_summary)
|
||||
|
||||
def prof_init(version, status):
|
||||
synopsis = [
|
||||
|
||||
Reference in New Issue
Block a user