diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-11-22 01:01:58 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-11-22 01:01:58 -0500 |
| commit | a33bb28019c25fd885bb6fe5402fc87a2dc04829 (patch) | |
| tree | 35a5202fb9403fda4f8d6e1d903628c310546fe7 /js/lex.js | |
| parent | 4a674cd3089346a02f6ffd3e6686e3b7fd01a367 (diff) | |
paste percents properly
Diffstat (limited to 'js/lex.js')
| -rw-r--r-- | js/lex.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -24,10 +24,10 @@ Lex.prototype.html = function(){ Lex.prototype.irc = function(){ if (this.bg == 1 && this.fg == 0) { // return "\\x03" + "," + (this.bg&15) + this.char - return this.char + return this.char == "%" ? '%%' : this.char } else { - return "\\x03" + (this.fg&15) + "," + (this.bg&15) + this.char + return "\\x03" + (this.fg&15) + "," + (this.bg&15) + (this.char == "%" ? '%%' : this.char) } } Lex.prototype.clone = function (lex){ |
