diff --git a/scripts/fuckyou.pl b/scripts/fuckyou.pl index 754a8f0..c2c4fca 100644 --- a/scripts/fuckyou.pl +++ b/scripts/fuckyou.pl @@ -75,10 +75,11 @@ sub cmd_fuckyou weechat::config_get_plugin('furry'), weechat::config_get_plugin('parallel')); + weechat::unhook($signal) if $signal; + weechat::unhook($timer) if $timer; + unless ($target) { - weechat::print($buffer, 'Stopping any current /fuckyou'); - weechat::unhook($signal) if $signal; - weechat::unhook($timer) if $timer; + weechat::print($buffer, 'Stopped any current /fuckyou'); return weechat::WEECHAT_RC_OK; } $amt_end //= 0;