Commit 7c83f534 authored by Kiyoshi Aman's avatar Kiyoshi Aman
Browse files

Chessa::Bug::Adelie: oops, not blessed yet

parent d15057af
......@@ -25,7 +25,7 @@ sub new {
$self->{irc} = $self->{conf}{irc};
$self->{projects} = {};
$self->load_projects($http, 'https://git.adelielinux.org/api/v4/projects');
load_projects($self, $http, 'https://git.adelielinux.org/api/v4/projects');
return bless $self, $class || ref $class;
}
......@@ -55,7 +55,7 @@ sub load_projects {
on_response => sub {
my ($response) = @_;
$self->log("Fetched projects from $uri");
$self->projects($http, $response);
projects($self, $http, $response);
}, on_error => sub {
my ($error) = @_;
$self->error("Couldn't fetch projects: $error");
......@@ -75,7 +75,7 @@ sub projects {
}
my $link = $response->header('Link');
if (length($link)) {
$self->load_projects($http, $link);
load_projects($self, $http, $link);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment