mirror of
https://github.com/pragma-/pbot.git
synced 2025-02-17 05:50:56 +01:00
get_title.pl: remove trailing non-word character
This commit is contained in:
parent
5f9dd151e2
commit
340cf07558
@ -13,7 +13,9 @@ if ($#ARGV <= 0)
|
|||||||
}
|
}
|
||||||
|
|
||||||
my $nick = shift(@ARGV);
|
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/explosm.net/i;
|
||||||
exit if $arguments =~ m/stackoverflow.com/i;
|
exit if $arguments =~ m/stackoverflow.com/i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user