From: Dan Boger Date: Sat, 14 Mar 2009 21:11:21 +0000 (-0700) Subject: r550 - Fix it so that the service doesn't have to be properly capitalized when using... X-Git-Url: https://git.sommitrealweird.co.uk/twirssi-net-twitter-lite.git/commitdiff_plain/f8fc7c6e3d309a7c5319be3065a849df8beb3945?ds=sidebyside r550 - Fix it so that the service doesn't have to be properly capitalized when using twitter_switch --- diff --git a/twirssi.pl b/twirssi.pl index 9d88cad..8d5944c 100644 --- a/twirssi.pl +++ b/twirssi.pl @@ -11,7 +11,7 @@ $Data::Dumper::Indent = 1; use vars qw($VERSION %IRSSI); $VERSION = "2.1.3beta"; -my ($REV) = '$Rev: 549 $' =~ /(\d+)/; +my ($REV) = '$Rev: 550 $' =~ /(\d+)/; %IRSSI = ( authors => 'Dan Boger', contact => 'zigdon@gmail.com', @@ -20,7 +20,7 @@ my ($REV) = '$Rev: 549 $' =~ /(\d+)/; . 'Can optionally set your bitlbee /away message to same', license => 'GNU GPL v2', url => 'http://twirssi.com', - changed => '$Date: 2009-03-14 14:06:07 -0700 (Sat, 14 Mar 2009) $', + changed => '$Date: 2009-03-14 14:10:35 -0700 (Sat, 14 Mar 2009) $', ); my $window; @@ -1272,7 +1272,9 @@ sub normalize_username { my $user = shift; my ( $username, $service ) = split /\@/, $user, 2; - unless ($service) { + if ($service) { + $service = ucfirst lc $service; + } else { $service = ucfirst lc Irssi::settings_get_str("twirssi_default_service"); unless ( exists $twits{"$username\@$service"} ) {