From a6b2469e2d05e793a2ee994c21246be4d349c000 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=ADle=20Ekaterin=20Aman?= <sheila@vulpine.house> Date: Wed, 1 Jun 2022 18:49:28 -0700 Subject: [PATCH] bug.pl: add .bug command --- scripts/autorun/bug.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/autorun/bug.pl b/scripts/autorun/bug.pl index 684f80f..b8cf893 100644 --- a/scripts/autorun/bug.pl +++ b/scripts/autorun/bug.pl @@ -84,6 +84,12 @@ Irssi::signal_add 'event privmsg' => sub { }; my @channels = split ' ', Irssi::settings_get_str('bug_targets'); + if ($text =~ s/^\.bug //) { + if ($target eq $src) { + $src = undef; + } + url_process($src, $on_info, $nick, $text); + } unless (grep { uc($target) eq uc($_)} @channels) { return; } -- GitLab