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']);
}
/**
case 'search':
return $this->searchUser();
case 'config':
- return $this->configUser();
+ return ($this->configUser()) ? 0 : 1;
default:
throw new \Asika\SimpleConsole\CommandArgsException('Wrong command.');
}
return false;
}
- return false;
+ return true;
}
}