Warn on attempts to change nice_server during server lifetime.
authorRichard Kettlewell <rjk@greenend.org.uk>
Sun, 12 Apr 2009 20:30:59 +0000 (21:30 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sun, 12 Apr 2009 20:30:59 +0000 (21:30 +0100)
lib/configuration.c

index 98f5fbf..95b8133 100644 (file)
@@ -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;