diff options
| author | Jonas Berlin | 2015-11-09 12:59:18 +0200 | 
|---|---|---|
| committer | Jonas Berlin | 2015-11-09 12:59:18 +0200 | 
| commit | 99b153246079d03e841ddddc3675059a68f70374 (patch) | |
| tree | 905ab86941da59c99de1b16c64f9656f4e9bfee1 | |
| parent | 7fdca7b2fe495b1fd5bc59c9ea838c05259c35b2 (diff) | |
| download | scripts.irssi.org-99b153246079d03e841ddddc3675059a68f70374.tar.bz2 | |
Update slack_complete.pl
Add support for enabling for all networks with /set slack_network *
| -rw-r--r-- | scripts/slack_complete.pl | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/scripts/slack_complete.pl b/scripts/slack_complete.pl index 832fd51..01e38b6 100644 --- a/scripts/slack_complete.pl +++ b/scripts/slack_complete.pl @@ -4,6 +4,7 @@  # Version history:  #  1.1: - Added support for multiple networks: /set slack_network slack flowdock gitter +#         or all networks: /set slack_network *  use strict; @@ -32,7 +33,7 @@ my ($complist, $window, $word, $linestart, $want_space) = @_;  	my $wi = Irssi::active_win()->{active};  	return unless ref $wi and $wi->{type} eq 'CHANNEL';  	my %chatnets = map { $_ => 1 } split(/\s+/, Irssi::settings_get_str('slack_network')); -	return unless exists $chatnets{$wi->{server}->{chatnet}}; +	return unless exists $chatnets{'*'} || exists $chatnets{$wi->{server}->{chatnet}};  	if ($word =~ /^@/) {  		$word =~ s/^@//; | 
