From: Dan Boger Date: Wed, 21 Jan 2009 17:53:41 +0000 (-0800) Subject: 1.7.6 - r379 - Fix tab complete in /twitter_reply X-Git-Url: https://git.sommitrealweird.co.uk/twirssi-net-twitter-lite.git/commitdiff_plain/04110752ef11d90a47aeefb5d2d6afc587d72643?hp=--cc 1.7.6 - r379 - Fix tab complete in /twitter_reply --- 04110752ef11d90a47aeefb5d2d6afc587d72643 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