Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #57 from takayama-lily/dev
Browse files Browse the repository at this point in the history
-
  • Loading branch information
takayama-lily authored Sep 28, 2020
2 parents 8c1941b + 8c35b8d commit 8e1d99c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions lib/troop.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,11 @@ async function setStatus(status) {
const blob = await this.sendUNI("StatSvc.SetStatusFromClient", body);
const nested = jce.decodeWrapper(blob);
const parent = jce.decode(nested);
result = parent[9];
if (result === 0)
let result = 1;
if (parent[9]) {
result = 0;
this.online_status = status;
}
return {result};
}

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oicq",
"version": "1.8.0",
"version": "1.8.2",
"description": "QQ protocol!",
"main": "client.js",
"scripts": {
Expand Down

0 comments on commit 8e1d99c

Please sign in to comment.