summaryrefslogtreecommitdiff
path: root/quote.py
diff options
context:
space:
mode:
Diffstat (limited to 'quote.py')
-rw-r--r--quote.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/quote.py b/quote.py
index 2243915..ee18660 100644
--- a/quote.py
+++ b/quote.py
@@ -44,7 +44,7 @@ class quote(object):
else:
channel.msg("%s: What am I removing?" % user.nick)
elif cmd == "--flush":
- with codecs.open(self.quotefile, "w", encoding=encoding) as f:
+ with codecs.open(self.quotefile, "w", encoding=self.encoding) as f:
for line in self.quotes:
print >>f, line
else: