From 553d81156ea61e3b3fad5e7fc4d1191ff55ceabb Mon Sep 17 00:00:00 2001 Message-Id: <553d81156ea61e3b3fad5e7fc4d1191ff55ceabb.1715320043.git.mdw@distorted.org.uk> From: Mark Wooding Date: Sun, 12 Apr 2009 21:30:59 +0100 Subject: [PATCH] Warn on attempts to change nice_server during server lifetime. Organization: Straylight/Edgeware From: Richard Kettlewell --- lib/configuration.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- [mdw]