From 04110752ef11d90a47aeefb5d2d6afc587d72643 Mon Sep 17 00:00:00 2001 From: Dan Boger Date: Wed, 21 Jan 2009 09:53:41 -0800 Subject: [PATCH] 1.7.6 - r379 - Fix tab complete in /twitter_reply --- twirssi.pl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/twirssi.pl b/twirssi.pl index ad7bf88..03680f4 100644 --- a/twirssi.pl +++ b/twirssi.pl @@ -11,8 +11,8 @@ $Data::Dumper::Indent = 1; use vars qw($VERSION %IRSSI); -$VERSION = "1.7.5"; -my ($REV) = '$Rev: 374 $' =~ /(\d+)/; +$VERSION = "1.7.6"; +my ($REV) = '$Rev: 379 $' =~ /(\d+)/; %IRSSI = ( authors => 'Dan Boger', contact => 'zigdon@gmail.com', @@ -21,7 +21,7 @@ my ($REV) = '$Rev: 374 $' =~ /(\d+)/; . 'Can optionally set your bitlbee /away message to same', license => 'GNU GPL v2', url => 'http://tinyurl.com/twirssi', - changed => '$Date: 2009-01-19 23:31:12 -0800 (Mon, 19 Jan 2009) $', + changed => '$Date: 2009-01-21 09:50:42 -0800 (Wed, 21 Jan 2009) $', ); my $window; @@ -883,7 +883,9 @@ sub sig_complete { and $linestart =~ /^\/reply(?:_as)?\s*$/ ) ) { # /twitter_reply gets a nick:num - @$complist = grep /^\Q$word/i, sort keys %{ $id_map{__indexes} }; + $word =~ s/^@//; + @$complist = map { "$_:$id_map{__indexes}{$_}" } grep /^\Q$word/i, + sort keys %{ $id_map{__indexes} }; } # /tweet, /tweet_as, /dm, /dm_as - complete @nicks (and nicks as the first -- 2.39.5