commit f3b7681662aba7c9f6a0940b926e5ab93fa01d40 parent 2f7d0abbe36e10c7d42299036bfb0856b7dcb1c3 Author: Antoine Amarilli <a3nm@a3nm.net> Date: Wed, 4 Jul 2012 06:55:53 +0200 document trick to remove color on a second channel Diffstat:
README | | | 9 | +++++++++ |
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/README b/README @@ -64,6 +64,15 @@ are read from pagelist at startup and written to pagelist on exit) and pipes it to your own IRC server. The bot can be controlled by /msg'ing uniquebotnick as adminnick on irc.wikimedia.org. +If some of your users have no color code support, you can add the following +before the last irctk call: + + sed -u 's/^.*$/[#color] &\n[#nocolor] &/' | + sed -ru "/^\[#nocolor\]/ s/\x03[0-9][0-9]//g" + +This will produce colored output on channel #color and raw output on channel +#nocolor. + == 3. Hacking == A few things can easily be tweaked in the code: