Permalink
Browse files

Ask for Net::GitHub::V2 object by project, not channel.

As per previous refactor, we now store the auth details keyed on project, not
channel.
  • Loading branch information...
1 parent 6ffe5c0 commit 4aadd7a0c9571a674456bb2769a154a644b4024b @bigpresh committed Oct 3, 2011
@@ -47,7 +47,7 @@ sub tick {
my %notifications;
warn "Looking for issues for $project for $channel";
- my $ng = $self->ng($channel) or next channel;
+ my $ng = $self->ng($project) or next channel;
my $issues = $ng->issue->list('open');
@@ -54,7 +54,7 @@ sub said {
# Get the Net::GitHub::V2 object we'll be using. (If we don't get one,
# for some reason, we can't do anything useful.)
- my $ng = $self->ng($mess->{channel}) or return;
+ my $ng = $self->ng($project) or return;
# First, extract what kind of thing we're looking at, and normalise it a
# little, then go on to handle it.

0 comments on commit 4aadd7a

Please sign in to comment.