Commit 66e88efd authored by JoyJ's avatar JoyJ

fix

parent f5d22320
......@@ -5,11 +5,12 @@ ygopro.ctos_follow_before('CHAT', true, function(buffer, info, client, server, d
return;
}
var regex = /[0-9]+d[0-9]+/;
var found = regex.exec(msg).toString();
var found = regex.exec(msg);
var dicenum = 1;
var dicemax = 100;
if (found)
{
found = found.toString();
var split = found.split('d');
dicenum = split[0];
dicemax = split[1];
......
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