aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2020-06-09 08:30:50 +0200
committerPatrick Spek <p.spek@tyil.nl>2020-06-09 08:30:50 +0200
commit1f3ac4c726a78b406ec3fff326799ed1018cd370 (patch)
tree73f0ac4fb47e1596854525d4afaa0f7122f8a2df
parenta9904ad5444f596f7cd5341d74f0de757a5738a7 (diff)
downloadmusashi-1f3ac4c726a78b406ec3fff326799ed1018cd370.tar.gz
musashi-1f3ac4c726a78b406ec3fff326799ed1018cd370.tar.bz2
Make the nitter replacement global
-rw-r--r--lib/Local/Musashi.pm64
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Local/Musashi.pm6 b/lib/Local/Musashi.pm6
index 894a2f0..94a37ab 100644
--- a/lib/Local/Musashi.pm6
+++ b/lib/Local/Musashi.pm6
@@ -100,9 +100,9 @@ unit sub MAIN (
$e.text.subst("black", "african-american")
}
- multi method irc-privmsg-channel($e where /"twitter.com"/)
+ multi method irc-privmsg-channel($e where *.contains('twitter.com'))
{
- $e.text.subst("twitter.com", "nitter.net")
+ $e.text.subst('twitter.com', 'nitter.net', :g)
}
#| Allow reloading configuration while the bot is