use vars qw($VERSION %IRSSI);
-$VERSION = "2.2.5beta";
+$VERSION = "2.2.5";
my ($REV) = '$Rev: 687 $' =~ /(\d+)/;
%IRSSI = (
authors => 'Dan Boger',
return;
}
- if ( my $timeout = Irssi::settings_get_int("twitter_timeout") ) {
+ if ( my $timeout = Irssi::settings_get_int("twitter_timeout") and $twit->can('ua')) {
$twit->ua->timeout($timeout);
}
sub { ¬ice("Device updated to $_[0]"); }
)
);
+ Irssi::command_bind(
+ "twitter_block",
+ &gen_cmd(
+ "/twitter_block <username>",
+ "create_block",
+ sub { ¬ice("Blocked $_[0]"); }
+ )
+ );
+ Irssi::command_bind(
+ "twitter_unblock",
+ &gen_cmd(
+ "/twitter_unblock <username>",
+ "destroy_block",
+ sub { ¬ice("Unblock $_[0]"); }
+ )
+ );
Irssi::signal_add_last( 'complete word' => \&sig_complete );
¬ice(" %Y<%C(%B^%C)%N TWIRSSI v%R$VERSION%N (r$REV)");