mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 20:00:23 +02:00
/EXEC -quiet now hides the output entirely.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2724 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
c5a6c78ba4
commit
2321deb9d3
2 changed files with 6 additions and 1 deletions
|
|
@ -497,6 +497,7 @@ static void handle_exec(const char *args, GHashTable *optlist,
|
|||
rec->args = g_strdup(args);
|
||||
rec->notice = notice;
|
||||
rec->silent = g_hash_table_lookup(optlist, "-") != NULL;
|
||||
rec->quiet = g_hash_table_lookup(optlist, "quiet") != NULL;
|
||||
rec->name = g_strdup(g_hash_table_lookup(optlist, "name"));
|
||||
|
||||
level = g_hash_table_lookup(optlist, "level");
|
||||
|
|
@ -571,6 +572,9 @@ static void sig_exec_input(PROCESS_REC *rec, const char *text)
|
|||
SERVER_REC *server;
|
||||
char *str;
|
||||
|
||||
if (rec->quiet)
|
||||
return;
|
||||
|
||||
item = NULL;
|
||||
server = NULL;
|
||||
|
||||
|
|
@ -619,7 +623,7 @@ static void event_text(const char *data, SERVER_REC *server, EXEC_WI_REC *item)
|
|||
void fe_exec_init(void)
|
||||
{
|
||||
command_bind("exec", NULL, (SIGNAL_FUNC) cmd_exec);
|
||||
command_set_options("exec", "!- interactive nosh +name out +msg +notice +in window close +level");
|
||||
command_set_options("exec", "!- interactive nosh +name out +msg +notice +in window close +level quiet");
|
||||
|
||||
signal_exec_input = signal_get_uniq_id("exec input");
|
||||
signal_add("pidwait", (SIGNAL_FUNC) sig_pidwait);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue