From ad1ab832984d70f3a94f2669309c91d673a363b6 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sat, 14 Feb 2015 04:02:13 -0800 Subject: [PATCH] Update bad_actions with more matches --- PBot/AntiAway.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PBot/AntiAway.pm b/PBot/AntiAway.pm index d29bc665..c0f7839b 100644 --- a/PBot/AntiAway.pm +++ b/PBot/AntiAway.pm @@ -24,7 +24,7 @@ sub initialize { $self->{pbot} = delete $conf{pbot} // Carp::croak("Missing pbot reference to " . __FILE__); $self->{pbot}->{registry}->add_default('text', 'antiaway', 'bad_nicks', $conf{bad_nicks} // '[[:punct:]](afk|away|sleep|z+|work|gone)[[:punct:]]*$'); - $self->{pbot}->{registry}->add_default('text', 'antiaway', 'bad_actions', $conf{bad_actions} // '^/me is away'); + $self->{pbot}->{registry}->add_default('text', 'antiaway', 'bad_actions', $conf{bad_actions} // '^/me (is (away|gone)|.*auto.?away)'); $self->{pbot}->{registry}->add_default('text', 'antiaway', 'kick_msg', 'http://sackheads.org/~bnaylor/spew/away_msgs.html'); $self->{pbot}->{event_dispatcher}->register_handler('irc.nick', sub { $self->on_nickchange(@_) });