summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/lex.js5
-rw-r--r--js/matrix.js2
2 files changed, 2 insertions, 5 deletions
diff --git a/js/lex.js b/js/lex.js
index 8c6b717..4c08262 100644
--- a/js/lex.js
+++ b/js/lex.js
@@ -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 {
diff --git a/js/matrix.js b/js/matrix.js
index 33c0b00..08f5a79 100644
--- a/js/matrix.js
+++ b/js/matrix.js
@@ -188,7 +188,7 @@ Matrix.prototype.irssi = function(){
.replace(/\'/g, '\\\'')
.replace(/\`/g, '\\\`')
.replace(/\$/g, '\\$')
- .replace(/\n\s+/g, '\n')
+ // .replace(/\n\s+/g, '\n')
// .replace(/\s+$/g, '\n')
// .replace(/^\n+/, '')
.replace(/\n/g, '\\n')