X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=tools%2Fdirective;h=cdaf490beb112edcc0633e5bf3c8a22dda611590;hb=aa885c1661979b43ab26a682e46ab93306ff8015;hp=07d4b09e2927782d1d1e9ae7fd773ca1f0d82ca3;hpb=f6b861f12d070ba931d829505bfd3229653f5df2;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/tools/directive b/tools/directive index 07d4b09e2..cdaf490be 100755 --- a/tools/directive +++ b/tools/directive @@ -2,7 +2,7 @@ # # InspIRCd -- Internet Relay Chat Daemon # -# Copyright (C) 2020 Sadie Powell +# Copyright (C) 2020-2021 Sadie Powell # # This file is part of InspIRCd. InspIRCd is free software: you can # redistribute it and/or modify it under the terms of the GNU General Public @@ -30,7 +30,7 @@ use make::console; use make::directive; if (scalar @ARGV < 2) { - print_format "<|GREEN Usage:|> $0 <<|UNDERLINE FILE|>> [<|UNDERLINE DIRECTIVES...|>]\n", *STDERR; + say STDERR console_format "<|GREEN Usage:|> $0 <<|UNDERLINE FILE|>> [<|UNDERLINE DIRECTIVES...|>]"; exit 1 } @@ -40,7 +40,7 @@ print_error "<|GREEN $file|> does not exist and/or is not a file!" unless -f $fi for my $directive (@ARGV) { my $value = get_directive $file, $directive, ''; if (-t STDOUT) { - print_format "<|GREEN $directive|>: $value\n"; + say console_format "<|GREEN $directive|>: $value"; } else { say $value; }