Skip to content

Commit

Permalink
Merge pull request proftpd#1313 from proftpd/config-added-event-issue296
Browse files Browse the repository at this point in the history
Generate a `core.added-config` event, for any config_recs added.
  • Loading branch information
Castaglia authored Aug 21, 2021
2 parents cb3f7b2 + e089a68 commit dea444f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/configdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ config_rec *pr_config_add_set(xaset_t **set, const char *name, int flags) {
xaset_insert_end(*set, (xasetmember_t *) c);
}

/* Generate an event about the added config, for any interested parties.
* This is useful for tracking the origins of the config tree.
*/
pr_event_generate("core.added-config", c);

return c;
}

Expand Down

0 comments on commit dea444f

Please sign in to comment.