diff options
author | James Booth <boothj5@gmail.com> | 2015-10-17 22:58:45 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-10-17 22:58:45 +0100 |
commit | eca73909515a067725092f4464a12ad418e4b69a (patch) | |
tree | 4734638534541eb268722d794a74b3962b0e474a /src/command | |
parent | a35cbea73273fb7e61218155ca1c28ebab73bb5b (diff) | |
download | profani-tty-eca73909515a067725092f4464a12ad418e4b69a.tar.gz |
Implemented /script show
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/commands.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/command/commands.c b/src/command/commands.c index 58f2a9b2..808f573e 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -702,6 +702,10 @@ cmd_script(ProfWin *window, const char * const command, gchar **args) GSList *scripts = scripts_list(); cons_show_scripts(scripts); g_slist_free_full(scripts, g_free); + } else if ((g_strcmp0(args[0], "show") == 0) && args[1]) { + GSList *commands = scripts_read(args[1]); + cons_show_script(args[1], commands); + g_slist_free_full(commands, g_free); } else { cons_bad_cmd_usage(command); } |