From f8fc7c6e3d309a7c5319be3065a849df8beb3945 Mon Sep 17 00:00:00 2001 From: Dan Boger Date: Sat, 14 Mar 2009 14:11:21 -0700 Subject: [PATCH] r550 - Fix it so that the service doesn't have to be properly capitalized when using twitter_switch --- twirssi.pl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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"} ) { -- 2.39.5