From 7c4125e099c2d7b10aeb73156b598e232b74fb77 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Wed, 27 Oct 2010 21:56:18 -0500 Subject: [PATCH] properly use encode() to do the rot13 conversion, ignore conversion failures --- modules/TextTransform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/TextTransform.py b/modules/TextTransform.py index e90735f..de79500 100644 --- a/modules/TextTransform.py +++ b/modules/TextTransform.py @@ -43,7 +43,7 @@ class TextTransform(Module): whats = what.split(' ') if whats[0] == "rot13": - reply[0] = ' '.join(whats[1:]).decode('rot13') + reply[0] = ' '.join(whats[1:]).encode('rot13', 'ignore') return True # vi:tabstop=4:expandtab:autoindent