Handle the prompt command. Works the same way as the CLI.
struct stream_interface *si);
int pcli_next_pid; /* next target PID to use for the CLI proxy */
+ int pcli_prompt; /* is there a prompt ?! */
+
char *unique_id; /* custom unique ID */
/* These two pointers are used to resume the execution of the rule lists. */
struct buffer *msg = get_trash_chunk();
struct channel *oc = si_oc(&s->si[0]);
+ if (!s->pcli_prompt)
+ return;
+
if (s->pcli_next_pid == 0)
chunk_appendf(msg, "master> ");
else
else
*next_pid = target_pid;
return 1;
+ } else if (!strcmp("prompt", args[0])) {
+ s->pcli_prompt ^= 1;
+ return argl; /* return the number of elements in the array */
}
return 0;
s->flags |= SF_INITIALIZED;
s->pcli_next_pid = 0;
+ s->pcli_prompt = 0;
s->unique_id = NULL;
if ((t = task_new(tid_bit)) == NULL)