diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-03-11 20:53:57 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-03-11 20:53:57 -0400 |
| commit | 33605bd8d7cdaaa97e97f1891b655848c0f4763b (patch) | |
| tree | b76074c26aae507e83e086d3686e49e3e74407f2 /js/lex.js | |
| parent | ddf3eab0b847bf687a7a364aee7b7b645810980f (diff) | |
dont prefix zeroes so aggressively
Diffstat (limited to 'js/lex.js')
| -rw-r--r-- | js/lex.js | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -41,13 +41,10 @@ Lex.prototype.sanitize = function(){ var fgOnly = false Lex.prototype.mirc = function(){ var char = this.char || " " - if (parseInt(char)) { - char = "\x02\x02" + char - } if (fgOnly) { return "\x03" + (this.fg&15) + char } - if ((this.bg&15) < 10) { + if ((this.bg&15) < 10 && parseInt(char)) { return "\x03" + (this.fg&15) + ",0" + (this.bg&15) + char } else { |
