properly use encode() to do the rot13 conversion, ignore conversion failures

This commit is contained in:
Brian S. Stephan 2010-10-27 21:56:18 -05:00
parent 1bc0dd0b2a
commit 7c4125e099
1 changed files with 1 additions and 1 deletions

View File

@ -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