From: Andrew Hills Date: Tue, 10 Dec 2013 04:09:23 +0000 (-0500) Subject: (bitlbee_blist) Update scripts/bitlbee_blist.pl X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=df91dd1cbd99a1eaa346334ba4e94212fd65eb76;p=irssi-scripts.irssi.org.git (bitlbee_blist) Update scripts/bitlbee_blist.pl Use grep even when only one argument is given to /blist --- diff --git a/scripts/bitlbee_blist.pl b/scripts/bitlbee_blist.pl index f9d3ba4..864001f 100644 --- a/scripts/bitlbee_blist.pl +++ b/scripts/bitlbee_blist.pl @@ -47,6 +47,7 @@ sub get_channel { sub blist { my ($args, $server, $winit) = @_; ($list, $word) = split(/ /, $args, 2); + ($word, $list) = ($list, $word) unless $word; $list=lc $list; $word=lc $word; if($list ne "all" && $list ne "online" && $list ne "offline" &&