summaryrefslogtreecommitdiff
path: root/make/template
diff options
context:
space:
mode:
Diffstat (limited to 'make/template')
-rw-r--r--make/template/inspircd2
1 files changed, 1 insertions, 1 deletions
diff --git a/make/template/inspircd b/make/template/inspircd
index f34345cea..e860c70f8 100644
--- a/make/template/inspircd
+++ b/make/template/inspircd
@@ -59,7 +59,7 @@ my $executable = "inspircd";
my $version = "@VERSION_FULL@";
my $uid = "@UID@";
-if (!("--runasroot" ~~ @ARGV) && ($< == 0 || $> == 0)) {
+if (!(grep { $_ eq '--runasroot' } @ARGV) && ($< == 0 || $> == 0)) {
if ($uid !~ /^\d+$/) {
# Named UID, look it up
$uid = getpwnam $uid;