aboutsummaryrefslogtreecommitdiffstats
path: root/IRC/translate_colors.py
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2013-12-16 16:23:12 +0100
committerlassulus <lassulus@googlemail.com>2013-12-16 16:23:12 +0100
commit2b271a1187bb19e464627f38fdb8caa7160eaf12 (patch)
tree2621af35eb4df086750d8f03f1e84af8fc39d581 /IRC/translate_colors.py
parentb88195721f6e315c6bc029a6936ba91e4733edd8 (diff)
Reaktor/IRC: use config.json (and python3ize)
Diffstat (limited to 'IRC/translate_colors.py')
-rw-r--r--IRC/translate_colors.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/IRC/translate_colors.py b/IRC/translate_colors.py
index bd71661..3ea34be 100644
--- a/IRC/translate_colors.py
+++ b/IRC/translate_colors.py
@@ -23,7 +23,7 @@ COLOR_MAP = {
}
def translate_colors (line):
for color,replace in COLOR_MAP.items():
- line = line.replace(color,replace)
+ line = line.replace(color.encode(encoding='UTF-8'),replace.encode(encoding='UTF-8'))
return line
if __name__ == "__main__":