From 340cf07558011287f46ec6bb8e749d990d0319e3 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Fri, 23 Jan 2015 13:49:16 -0800 Subject: [PATCH] get_title.pl: remove trailing non-word character --- modules/get_title.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/get_title.pl b/modules/get_title.pl index a4e50d61..9ef271d3 100755 --- a/modules/get_title.pl +++ b/modules/get_title.pl @@ -13,7 +13,9 @@ if ($#ARGV <= 0) } my $nick = shift(@ARGV); -$arguments = join("%20", @ARGV); +my $arguments = join("%20", @ARGV); + +$arguments =~ s/\W$//; exit if $arguments =~ m/explosm.net/i; exit if $arguments =~ m/stackoverflow.com/i;