xC: send missing relay events for newly added servers

This commit is contained in:
Přemysl Eric Janouch 2023-08-25 22:22:47 +02:00
parent 274d5f03e7
commit c22dd67fc1
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 3 additions and 0 deletions

3
xC.c
View File

@ -9439,6 +9439,9 @@ server_add (struct app_context *ctx,
str_map_set (&ctx->servers, s->name, s);
s->config = subtree;
relay_prepare_server_update (ctx, s);
relay_broadcast (ctx);
// Add a buffer and activate it
struct buffer *buffer = s->buffer = buffer_new (ctx->input,
BUFFER_SERVER, irc_make_buffer_name (s, NULL));