Commit 2dccd921 authored by nanahira's avatar nanahira

ocg list in ocg

parent 9180f08d
...@@ -853,9 +853,11 @@ class Room ...@@ -853,9 +853,11 @@ class Room
if (rule.match /(^|,|,)(OOR|OCGONLYRANDOM)(,|,|$)/) if (rule.match /(^|,|,)(OOR|OCGONLYRANDOM)(,|,|$)/)
@hostinfo.rule = 0 @hostinfo.rule = 0
@hostinfo.lflist = 0
if (rule.match /(^|,|,)(OR|OCGRANDOM)(,|,|$)/) if (rule.match /(^|,|,)(OR|OCGRANDOM)(,|,|$)/)
@hostinfo.rule = 2 @hostinfo.rule = 2
@hostinfo.lflist = 0
if (rule.match /(^|,|,)(TOR|TCGONLYRANDOM)(,|,|$)/) if (rule.match /(^|,|,)(TOR|TCGONLYRANDOM)(,|,|$)/)
@hostinfo.rule = 1 @hostinfo.rule = 1
...@@ -871,6 +873,7 @@ class Room ...@@ -871,6 +873,7 @@ class Room
if (rule.match /(^|,|,)(OCGONLY|OO)(,|,|$)/) if (rule.match /(^|,|,)(OCGONLY|OO)(,|,|$)/)
@hostinfo.rule = 0 @hostinfo.rule = 0
@hostinfo.lflist = 0
if (rule.match /(^|,|,)(OT|TCG)(,|,|$)/) if (rule.match /(^|,|,)(OT|TCG)(,|,|$)/)
@hostinfo.rule = 2 @hostinfo.rule = 2
......
...@@ -1092,9 +1092,11 @@ ...@@ -1092,9 +1092,11 @@
} }
if (rule.match(/(^|,|,)(OOR|OCGONLYRANDOM)(,|,|$)/)) { if (rule.match(/(^|,|,)(OOR|OCGONLYRANDOM)(,|,|$)/)) {
this.hostinfo.rule = 0; this.hostinfo.rule = 0;
this.hostinfo.lflist = 0;
} }
if (rule.match(/(^|,|,)(OR|OCGRANDOM)(,|,|$)/)) { if (rule.match(/(^|,|,)(OR|OCGRANDOM)(,|,|$)/)) {
this.hostinfo.rule = 2; this.hostinfo.rule = 2;
this.hostinfo.lflist = 0;
} }
if (rule.match(/(^|,|,)(TOR|TCGONLYRANDOM)(,|,|$)/)) { if (rule.match(/(^|,|,)(TOR|TCGONLYRANDOM)(,|,|$)/)) {
this.hostinfo.rule = 1; this.hostinfo.rule = 1;
...@@ -1116,6 +1118,7 @@ ...@@ -1116,6 +1118,7 @@
} }
if (rule.match(/(^|,|,)(OCGONLY|OO)(,|,|$)/)) { if (rule.match(/(^|,|,)(OCGONLY|OO)(,|,|$)/)) {
this.hostinfo.rule = 0; this.hostinfo.rule = 0;
this.hostinfo.lflist = 0;
} }
if (rule.match(/(^|,|,)(OT|TCG)(,|,|$)/)) { if (rule.match(/(^|,|,)(OT|TCG)(,|,|$)/)) {
this.hostinfo.rule = 2; this.hostinfo.rule = 2;
......
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