version 1.42, 2017/04/19 12:44:29 |
version 1.43, 2017/04/22 10:22:39 |
|
|
.usage = "[-1Ni] [-I inputs] [-p prompts] " CMD_TARGET_CLIENT_USAGE " " |
.usage = "[-1Ni] [-I inputs] [-p prompts] " CMD_TARGET_CLIENT_USAGE " " |
"[template]", |
"[template]", |
|
|
.tflag = CMD_CLIENT, |
|
|
|
.flags = 0, |
.flags = 0, |
.exec = cmd_command_prompt_exec |
.exec = cmd_command_prompt_exec |
}; |
}; |
|
|
struct args *args = self->args; |
struct args *args = self->args; |
const char *inputs, *prompts; |
const char *inputs, *prompts; |
struct cmd_command_prompt_cdata *cdata; |
struct cmd_command_prompt_cdata *cdata; |
struct client *c = item->state.c; |
struct client *c; |
char *prompt, *ptr, *input = NULL; |
char *prompt, *ptr, *input = NULL; |
size_t n; |
size_t n; |
|
|
|
if ((c = cmd_find_client(item, args_get(args, 't'), 0)) == NULL) |
|
return (CMD_RETURN_ERROR); |
|
|
if (c->prompt_string != NULL) |
if (c->prompt_string != NULL) |
return (CMD_RETURN_NORMAL); |
return (CMD_RETURN_NORMAL); |