diff options
| author | Teddy Wing | 2016-09-18 02:15:54 -0400 |
|---|---|---|
| committer | Teddy Wing | 2016-09-18 02:15:54 -0400 |
| commit | daaa803dd9e76435bae1e1afa2c9b6583bae89e7 (patch) | |
| tree | cce960f9877013e3d294a6604a82b6af8878cbb4 | |
| parent | fcd4f7f60b564543b0e1fd03e586e2fe1d670495 (diff) | |
| parent | 670ccf53297b3ca398ef78b3c4b5cd5edbcdca6d (diff) | |
| download | irssi-slack-profile-daaa803dd9e76435bae1e1afa2c9b6583bae89e7.tar.bz2 | |
Merge branch 'swhois--trim-surrounding-spaces-from-argument'
| -rw-r--r-- | slack_profile.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/slack_profile.pl b/slack_profile.pl index 1c6f1a7..88b1a66 100644 --- a/slack_profile.pl +++ b/slack_profile.pl @@ -479,6 +479,10 @@ sub swhois { # If $username starts with @, strip it $username =~ s/^@//; + # Trim leading and trailing whitespace + $username =~ s/^\s+//; + $username =~ s/\s+$//; + if (my $user = find_user($username)) { print_whois($user); } |
