summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarJanik Kleinhoff <janik@kleinhoff.de>2015-03-10 15:40:08 +0400
committerLibravatarJanik Kleinhoff <janik@kleinhoff.de>2015-03-10 15:40:08 +0400
commit4754175d195f45a4169be5dfd9045c2eccfd6c54 (patch)
tree3e5c1a44fc1155d59a5980da4c88283af50d6cde
parent4abe2ec58ca18faaff3fa6e33d3b97033b361ef6 (diff)
commands.xml: older List::Util doesn't have none(), so use grep
-rw-r--r--config-default/commands.xml3
1 files changed, 1 insertions, 2 deletions
diff --git a/config-default/commands.xml b/config-default/commands.xml
index 8fb62c9..b1b1ec9 100644
--- a/config-default/commands.xml
+++ b/config-default/commands.xml
@@ -475,14 +475,13 @@
<command cmd="^;join (\S+)" flag="a">
<![CDATA[
my $chan = lc $1;
- use List::Util qw(none);
unless (defined($::channels->{channel}->{$chan})) {
$::channels->{channel}->{$chan} = { };
ASM::XML->writeChannels();
}
$conn->join($chan);
my @autojoins = @{$::settings->{autojoins}};
- if (none { $chan eq lc $_ } @autojoins) {
+ if (!grep { $chan eq lc $_ } @autojoins) {
@autojoins = (@autojoins, $chan);
$::settings->{autojoins} = \@autojoins;
ASM::XML->writeSettings();