From: Richard Kettlewell Date: Sun, 12 Apr 2009 20:30:59 +0000 (+0100) Subject: Warn on attempts to change nice_server during server lifetime. X-Git-Tag: 5.0~132 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/553d81156ea61e3b3fad5e7fc4d1191ff55ceabb?ds=sidebyside;hp=-c Warn on attempts to change nice_server during server lifetime. --- 553d81156ea61e3b3fad5e7fc4d1191ff55ceabb diff --git a/lib/configuration.c b/lib/configuration.c index 98f5fbf..95b8133 100644 --- a/lib/configuration.c +++ b/lib/configuration.c @@ -1393,6 +1393,10 @@ int config_read(int server, error(0, "'nice_speaker' cannot be changed without a restart"); /* ...but we accept the new config anyway */ } + if(c->nice_server != oldconfig->nice_server) { + error(0, "'nice_server' cannot be changed without a restart"); + /* ...but we accept the new config anyway */ + } if(namepartlist_compare(&c->namepart, &oldconfig->namepart)) { error(0, "'namepart' settings cannot be changed without a restart"); failed = 1;