]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
The mIRC color for white is 0, not 16
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 7 Dec 2010 16:57:14 +0000 (17:57 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 7 Dec 2010 16:57:14 +0000 (17:57 +0100)
Default mIRC colors are 0-15, and some clients don't react too well to a
color > 15, while most wrap or default. Konversation, for example, will
stop the color command parsing and interpret it as color 1, followed by
the literal digit 6.

So use the 'official' (mIRC) value of 0 for white.

lib/rbot/message.rb

index bb7f655c67c1310e63707c928d1360df98c07ff8..315088790bd90e26818a4c2b7eb027b456e9875d 100644 (file)
@@ -72,7 +72,7 @@ module Irc
     :dark_gray  => 14,
     :lightgray  => 15,
     :light_gray => 15,
-    :white      => 16
+    :white      => 0
   }
 
   # Convert a String or Symbol into a color number