From 9e362725ce13783fda564777781928fdf30a0df1 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Wed, 8 Jul 2020 14:48:30 -0700 Subject: [PATCH] Plugins/TypoSub: users can set `no-typosub` to exclude themselves from s/// invocation --- Plugins/TypoSub.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Plugins/TypoSub.pm b/Plugins/TypoSub.pm index f91462f5..2b7f8b5c 100644 --- a/Plugins/TypoSub.pm +++ b/Plugins/TypoSub.pm @@ -43,6 +43,8 @@ sub on_public { my $nosubs = $self->{pbot}->{registry}->get_value($channel, 'notyposub'); return 0 if defined $nosubs and $nosubs; + return 0 if $self->{pbot}->{users}->get_loggedin_user_metadata($channel, "$nick!$user\@$host", 'no-typosub'); + return 0 if $channel !~ m/^#/; return 0 if $event->{interpreted};