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:
parent
644e1099d7
commit
504296bdbb
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user