Fix returns in Console commands

This commit is contained in:
Art4 2024-11-05 12:13:18 +00:00
parent 01ba276455
commit 4b971f84fd
3 changed files with 7 additions and 4 deletions

View file

@ -158,9 +158,10 @@ HELP;
if ($result['success']) {
$this->out('User ' . $user['nickname'] . ' now connected to ' . $url . ', contact ID ' . $result['cid']);
} else {
throw new RuntimeException($result['message']);
return true;
}
throw new RuntimeException($result['message']);
}
/**