#
# InspIRCd -- Internet Relay Chat Daemon
#
-# Copyright (C) 2020 Sadie Powell <sadie@witchery.services>
+# Copyright (C) 2020-2021 Sadie Powell <sadie@witchery.services>
#
# 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
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
}
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;
}