summaryrefslogtreecommitdiff
path: root/scripts/autorejoin.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/autorejoin.pl')
-rw-r--r--scripts/autorejoin.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/autorejoin.pl b/scripts/autorejoin.pl
index a6dd4b58..2d23449f 100644
--- a/scripts/autorejoin.pl
+++ b/scripts/autorejoin.pl
@@ -39,7 +39,7 @@ sub event_rejoin_kick {
return if ($server->{nick} ne $nick);
# check if we want to autorejoin this channel
- my @chans = split(/ ,/, Irssi::settings_get_str('autorejoin_channels'));
+ my @chans = split(/[ ,]+/, Irssi::settings_get_str('autorejoin_channels'));
foreach my $chan (@chans) {
if (lc($chan) eq lc($channel)) {
channel_rejoin($server, $channel);