Add number support to chat parser
This commit is contained in:
parent
ffaa85a096
commit
b25aad71a1
1 changed files with 2 additions and 0 deletions
|
@ -26,6 +26,8 @@ const parse=function(_data, l, resetColor){
|
|||
} catch(e){
|
||||
data={text:_data, color: "reset"}
|
||||
}
|
||||
} else if(typeof _data == "number"){
|
||||
data={text:_data+"", color: "reset"}
|
||||
} else {
|
||||
data=_data;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue