X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=Delling.pm;h=bed84f4bf3843cf3c3e2a2450aeab82603aee99a;hb=26cc9349b7b35318231d1dc8f236a7ac3dc8dcf2;hp=41d87254ae6ea852db45c148504954f0e36398b2;hpb=c9251f1bab067759546d60d35782731360ad70df;p=NDIRC.git diff --git a/Delling.pm b/Delling.pm index 41d8725..bed84f4 100644 --- a/Delling.pm +++ b/Delling.pm @@ -175,7 +175,7 @@ sub refresh { } if (defined $row[1] && $stattick != $row[1]){ $stattick = $row[1]; - $self->toTarget(members => "New tick: $stattick"); + $self->toTarget(spam => "New tick: $stattick"); } my $ircreqs = $dbh->prepare(q{SELECT id,username,message,channel FROM irc_requests NATURAL JOIN users WHERE not sent}); my $upircreq = $dbh->prepare(q{UPDATE irc_requests SET sent = TRUE WHERE id = ?}); @@ -220,8 +220,7 @@ after _start => sub { }; after discord_message_create => sub { - my $self = shift; - my $hash = shift; + my ($self, $gw, $hash) = @_; my $author = $hash->{author}; my $msg = $hash->{content}; @@ -240,6 +239,7 @@ after discord_message_create => sub { my $c = NDIRC::DiscordContext->new({ discord_id => $author_name, channel_id => $channel_id, + author_id => $author_id, channel => $channel, disp => $self->disp, model => DB(),