Commit b10a8e8f authored by nanahira's avatar nanahira

CCG

parent 8782978e
...@@ -1249,6 +1249,9 @@ class Room ...@@ -1249,6 +1249,9 @@ class Room
if (rule.match /(^|,|,)(OT|TCG)(,|,|$)/) if (rule.match /(^|,|,)(OT|TCG)(,|,|$)/)
@hostinfo.rule = 2 @hostinfo.rule = 2
if (rule.match /(^|,|,)(CN|CCG|CHINESE)(,|,|$)/)
@hostinfo.rule = 4
if (param = rule.match /(^|,|,)LP(\d+)(,|,|$)/) if (param = rule.match /(^|,|,)LP(\d+)(,|,|$)/)
start_lp = parseInt(param[2]) start_lp = parseInt(param[2])
if (start_lp <= 0) then start_lp = 1 if (start_lp <= 0) then start_lp = 1
......
...@@ -1628,6 +1628,9 @@ ...@@ -1628,6 +1628,9 @@
if (rule.match(/(^|,|,)(OT|TCG)(,|,|$)/)) { if (rule.match(/(^|,|,)(OT|TCG)(,|,|$)/)) {
this.hostinfo.rule = 2; this.hostinfo.rule = 2;
} }
if (rule.match(/(^|,|,)(CN|CCG|CHINESE)(,|,|$)/)) {
this.hostinfo.rule = 4;
}
if ((param = rule.match(/(^|,|,)LP(\d+)(,|,|$)/))) { if ((param = rule.match(/(^|,|,)LP(\d+)(,|,|$)/))) {
start_lp = parseInt(param[2]); start_lp = parseInt(param[2]);
if (start_lp <= 0) { if (start_lp <= 0) {
......
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