mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 04:22:35 +01:00
Add $event->{interpreted} example to _Example plugin
This commit is contained in:
parent
e5097eee69
commit
391cd91191
@ -34,6 +34,11 @@ sub on_public {
|
||||
my ($self, $event_type, $event) = @_;
|
||||
my ($nick, $user, $host, $msg) = ($event->{event}->nick, $event->{event}->user, $event->{event}->host, $event->{event}->args);
|
||||
|
||||
if ($event->{interpreted}) {
|
||||
$self->{pbot}->{logger}->log("Message was already handled by the interpreter.\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
$self->{pbot}->{logger}->log("_Example plugin: got message from $nick!$user\@$host: $msg\n");
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user