[PATCH] config hook: prevent two hooks with the same settings