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);