Commit 7481c0b9 authored by nanahira's avatar nanahira

fix

parent 509c8e01
...@@ -51,7 +51,7 @@ public class MatchObject : JSONObject { ...@@ -51,7 +51,7 @@ public class MatchObject : JSONObject {
public class MyCardHelper { public class MyCardHelper {
string username = null; string username = null;
int userid = 0; int userid = -1;
public bool login(string name, string password, out string fail_reason) { public bool login(string name, string password, out string fail_reason) {
try { try {
LoginRequest data = new LoginRequest(name, password); LoginRequest data = new LoginRequest(name, password);
...@@ -87,7 +87,7 @@ public class MyCardHelper { ...@@ -87,7 +87,7 @@ public class MyCardHelper {
public string requestMatch(string match_type, out string fail_reason) { public string requestMatch(string match_type, out string fail_reason) {
string ret; string ret;
if (username == null || !userid) { if (username == null || userid < 0) {
fail_reason = "Not logged in"; fail_reason = "Not logged in";
return null; return null;
} }
......
Markdown is supported
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