- // Basic alphanumeric check for opponent name
- if (!!c.to)
- {
- // TODO: slightly redundant (see data/userCheck.js)
- if (!c.to.match(/^[\w]+$/))
- return "Wrong characters in opponent name";
- }
+ // Basic alphanumeric check for opponent name
+ if (!!c.to)
+ {
+ // NOTE: slightly redundant (see data/userCheck.js)
+ if (!c.to.match(/^[\w]+$/))
+ return "Wrong characters in opponent name";
+ }