mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-20 02:49:49 +01:00
Remove extraneous comma
This commit is contained in:
parent
5d62f9e728
commit
b5c107bcbb
@ -72,7 +72,7 @@ SQL
|
|||||||
CREATE TABLE IF NOT EXISTS Triggers (
|
CREATE TABLE IF NOT EXISTS Triggers (
|
||||||
channel TEXT,
|
channel TEXT,
|
||||||
trigger TEXT,
|
trigger TEXT,
|
||||||
target TEXT,
|
target TEXT
|
||||||
)
|
)
|
||||||
SQL
|
SQL
|
||||||
|
|
||||||
@ -588,6 +588,8 @@ sub on_public {
|
|||||||
my ($nick, $user, $host, $msg) = ($event->{event}->nick, $event->{event}->user, $event->{event}->host, $event->{event}->args);
|
my ($nick, $user, $host, $msg) = ($event->{event}->nick, $event->{event}->user, $event->{event}->host, $event->{event}->args);
|
||||||
my $channel = $event->{event}->{to}[0];
|
my $channel = $event->{event}->{to}[0];
|
||||||
|
|
||||||
|
return 0 if $event->{interpreted};
|
||||||
|
|
||||||
if ($self->{pbot}->{ignorelist}->check_ignore($nick, $user, $host, $channel, 1)) {
|
if ($self->{pbot}->{ignorelist}->check_ignore($nick, $user, $host, $channel, 1)) {
|
||||||
my $admin = $self->{pbot}->{admins}->loggedin($channel, "$nick!$user\@$host");
|
my $admin = $self->{pbot}->{admins}->loggedin($channel, "$nick!$user\@$host");
|
||||||
if (!defined $admin || $admin->{level} < 10) {
|
if (!defined $admin || $admin->{level} < 10) {
|
||||||
|
Loading…
Reference in New Issue
Block a user