degesch: fix /server add
This commit is contained in:
parent
b9241bdef9
commit
606f0b1faa
@ -7466,11 +7466,11 @@ show_servers_list (struct app_context *ctx)
|
|||||||
static bool
|
static bool
|
||||||
handle_server_add (struct handler_args *a)
|
handle_server_add (struct handler_args *a)
|
||||||
{
|
{
|
||||||
char *name = cut_word (&a->arguments);
|
|
||||||
if (!*a->arguments)
|
if (!*a->arguments)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
struct app_context *ctx = a->ctx;
|
struct app_context *ctx = a->ctx;
|
||||||
|
char *name = cut_word (&a->arguments);
|
||||||
if (check_server_name_for_addition (ctx, name))
|
if (check_server_name_for_addition (ctx, name))
|
||||||
server_add_new (ctx, name);
|
server_add_new (ctx, name);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user