Make the mIRC color highlighting bearable on ChatZila.
authorRick Gibbed <gibbed@gitorious.org>
Tue, 9 Oct 2012 02:26:43 +0000 (22:26 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 9 Oct 2012 02:26:43 +0000 (22:26 -0400)
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
irkerhook.py

index b7bc1de58272458e519bb28f93bfd9f1a1e669f7..33167ea7fe5047c7a782db68e5d93d1b89d6fb79 100755 (executable)
@@ -109,12 +109,16 @@ class GenericExtractor:
     def activate_color(self, style):
         "IRC color codes."
         if style == 'mIRC':
-            # mIRC colors are mapped as closely to the ANSI colors as possible.
+            # mIRC colors are mapped as closely to the ANSI colors as
+            # possible.  However, bright colors (green, blue, red,
+            # yellow) have been made their dark counterparts since
+            # ChatZilla does not properly darken mIRC colors in the
+            # Light Motif color scheme.
             self.bold = '\x02'
-            self.green = '\x0309'
-            self.blue = '\x0312'
-            self.red = '\x0304'
-            self.yellow = '\x0308'
+            self.green = '\x0303'
+            self.blue = '\x0302'
+            self.red = '\x0305'
+            self.yellow = '\x0307'
             self.brown = '\x0305'
             self.magenta = '\x0306'
             self.cyan = '\x0310'