From a33bb28019c25fd885bb6fe5402fc87a2dc04829 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 22 Nov 2014 01:01:58 -0500 Subject: paste percents properly --- js/lex.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/lex.js') diff --git a/js/lex.js b/js/lex.js index ed4679d..723546a 100644 --- a/js/lex.js +++ b/js/lex.js @@ -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){ -- cgit v1.2.3-70-g09d2