Skip to content
Snippets Groups Projects
Commit a6b2469e authored by Síle Ekaterin Liszka's avatar Síle Ekaterin Liszka
Browse files

bug.pl: add .bug command

parent 6343c5a5
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment