From c592701f910204aae7e8a08b11c030d3aee82ef6 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Wed, 7 Jun 2006 11:31:52 +0000 Subject: [PATCH] - Disable /RESTART if running chrooted since that won't work anyway, reported by kayelem (#0002956). --- Changes | 4 +++- src/s_serv.c | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index 6522230d3..31bca7644 100644 --- a/Changes +++ b/Changes @@ -1246,5 +1246,7 @@ - Updated release notes, bleh.. I forgot :P - Got rid of qline notice that could happen if using services holds (semi-race condition), reported and bugfix provided by tabrisnet (#0002950). -- Made people with can_override able to change the topic again if not chanop and banned/+m-t, +- Made opers with can_override able to change the topic again if not chanop and banned/+m-t, reported by vonitsanet (#0002952). +- Disable /RESTART if running chrooted since that won't work anyway, reported by kayelem + (#0002956). diff --git a/src/s_serv.c b/src/s_serv.c index 7bbd2fcd9..e99c5c976 100644 --- a/src/s_serv.c +++ b/src/s_serv.c @@ -756,6 +756,11 @@ char *reason = parv[1]; return 0; } +#ifdef CHROOTDIR + sendnotice(sptr, "/RESTART does not work on chrooted servers"); + return 0; +#endif + /* Syntax: /restart */ if (parc == 1) {