properly use encode() to do the rot13 conversion, ignore conversion failures
This commit is contained in:
parent
1bc0dd0b2a
commit
7c4125e099
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue