diff options
| author | RblSb <msrblsb@gmail.com> | 2021-08-10 03:22:27 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2021-08-10 07:56:57 +0300 |
| commit | f972d4b7b1c6a69ab20cd2aee5a43df702796075 (patch) | |
| tree | 608f8031ef7e0885143eaf8670275171112c4e9a /src/client/Utils.hx | |
| parent | 96e10fe71d6428eed4bb2f120bc4b3a2801ff4be (diff) | |
Ban/unban commands
/ban Name 3d10h20m59s
/ban Name 2h30m
/unban Name
/removeBan Name
see #26
Diffstat (limited to 'src/client/Utils.hx')
| -rw-r--r-- | src/client/Utils.hx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/Utils.hx b/src/client/Utils.hx index 232ca02..f23365e 100644 --- a/src/client/Utils.hx +++ b/src/client/Utils.hx @@ -89,6 +89,14 @@ class Utils { } } + public static function matchedNum(ereg:EReg):Int { + #if js + return (ereg : Dynamic).r.m.length; + #else + #error "not implemented" + #end + } + public static function browseFileUrl( onFileLoad:(url:String, name:String) -> Void, isBinary = true, |
