3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-22 20:09:43 +01:00

ActionTrigger: strip /me from ACTION messages

This commit is contained in:
Pragmatic Software 2019-11-09 20:04:22 -08:00
parent 644e1099d7
commit 504296bdbb

View File

@ -310,6 +310,7 @@ sub on_action {
my ($nick, $user, $host, $msg) = ($event->{event}->nick, $event->{event}->user, $event->{event}->host, $event->{event}->args);
my $channel = $event->{event}->{to}[0];
return 0 if $event->{interpreted};
$msg =~ s/^\/me\s+//;
$self->check_trigger($nick, $user, $host, $channel, "ACTION $msg");
return 0;
}