From 46c135b05e8cf673045840c44522cd27a7a93ddf Mon Sep 17 00:00:00 2001 From: wowaname Date: Thu, 2 Feb 2017 07:08:58 +0000 Subject: [PATCH] fuckyou.pl minor bugfix --- scripts/fuckyou.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/fuckyou.pl b/scripts/fuckyou.pl index 0b37b89..754a8f0 100644 --- a/scripts/fuckyou.pl +++ b/scripts/fuckyou.pl @@ -157,9 +157,10 @@ sub event_whois_channels sub irc_402 { my $message = pop; + my $targmatch = quotemeta $target; return weechat::WEECHAT_RC_OK - unless ($message =~ /^[^ ]* 402 [^ ]+ $target /i); + unless ($message =~ /^[^ ]* 402 [^ ]+ $targmatch /i); weechat::unhook($signal); weechat::unhook($timer);