diff options
author | James Booth <boothj5@gmail.com> | 2015-10-15 01:19:24 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-10-15 01:19:24 +0100 |
commit | 904a5a81cfcc19c7029f0a961cfb97f7d1a2fe9f (patch) | |
tree | 92a1a43f43f7a5fbbd022fe9b4ccd2fbb1390cb8 /src/command/commands.c | |
parent | fb60a755e50e8edf8c00ebbf2ba1e707da6ec101 (diff) | |
download | profani-tty-904a5a81cfcc19c7029f0a961cfb97f7d1a2fe9f.tar.gz |
Add ability to script commands after connect
Diffstat (limited to 'src/command/commands.c')
-rw-r--r-- | src/command/commands.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/command/commands.c b/src/command/commands.c index df730c63..6e8ccfd9 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -586,6 +586,9 @@ cmd_account(ProfWin *window, const char * const command, gchar **args) cons_show("PGP support is not included in this build."); #endif cons_show(""); + } else if (strcmp(property, "startscript") == 0) { + accounts_set_script_start(account_name, value); + cons_show("Updated start script for account %s: %s", account_name, value); } else if (valid_resource_presence_string(property)) { int intval; char *err_msg = NULL; @@ -668,6 +671,10 @@ cmd_account(ProfWin *window, const char * const command, gchar **args) accounts_clear_pgp_keyid(account_name); cons_show("Removed PGP key ID for account %s", account_name); cons_show(""); + } else if (strcmp(property, "startscript") == 0) { + accounts_clear_script_start(account_name); + cons_show("Removed start script for account %s", account_name); + cons_show(""); } else { cons_show("Invalid property: %s", property); cons_show(""); |