From 2fb0f811b85726ca91062b1a02ac7cc61dbe0621 Mon Sep 17 00:00:00 2001 From: Fletcher Boyd Date: Fri, 6 Sep 2013 14:59:07 +0800 Subject: [PATCH] Docstring and typo fix. --- plugins/util/ircformat.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/util/ircformat.py b/plugins/util/ircformat.py index 5cd5444..20f32d2 100644 --- a/plugins/util/ircformat.py +++ b/plugins/util/ircformat.py @@ -1,4 +1,5 @@ def rep(format_string): + """Replace based irc formatting""" stuff = {} stuff['col'] = {'[white]':'\x030', '[black]':'\x031', @@ -23,5 +24,5 @@ def rep(format_string): for x in stuff: final.update(x) for x in final: - format_string = format_string.replace(x,rep[x]) + format_string = format_string.replace(x,final[x]) return format_string