From a9a94b6587c55c5c380725bb50004d175d845a31 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Fri, 26 Oct 2018 14:18:42 +0100 Subject: Fix "smartmatch is experimental" warning from the helper script. --- make/template/inspircd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'make/template/inspircd') 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; -- cgit v1.2.3