From bb2b602618da3df3d464984e97565cf5d25a37e2 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 10 Sep 2016 21:44:58 -0400 Subject: swhois: Rename `$data` to `$username` Because this name is so much clearer. I had used data because that's what's used in the Irssi command example. --- slack-profile.pl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/slack-profile.pl b/slack-profile.pl index 7c61fed..68039a6 100644 --- a/slack-profile.pl +++ b/slack-profile.pl @@ -61,7 +61,7 @@ sub find_user { } sub swhois { - my ($data, $server, $window_item) = @_; + my ($username, $server, $window_item) = @_; # if (!$server || !$server->{connected}) { # Irssi::print("Not connected to server"); @@ -76,11 +76,11 @@ sub swhois { } } - if ($data) { - # If $data starts with @, strip it - $data =~ s/^@//; + if ($username) { + # If $username starts with @, strip it + $username =~ s/^@//; - if (my $user = find_user($data)) { + if (my $user = find_user($username)) { my $bot = ''; if ($user->{'is_bot'}) { -- cgit v1.2.3