Bug Fixed: cannot return repo details

This commit is contained in:
dennydai 2016-06-15 17:26:11 +08:00
parent 4261e33836
commit c464bcf46c
1 changed files with 2 additions and 2 deletions

View File

@ -47,8 +47,8 @@ function plugin_github_check($title, $check)
}
}
if (!empty($user['login'])) {
if (!empty($user['login']) or !empty($repo['name'])) {
$BOT->msg($plugin_sendto, $msg);
}else{
$BOT->msg($plugin_sendto, 'User Not Found.');
}
}