fix formatting

This commit is contained in:
Gordon Shumway 2019-11-18 01:14:16 -05:00 committed by GitHub
parent 80d354b1a7
commit dc9bb07761
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -272,12 +272,16 @@ class Fun(callbacks.Plugin):
chuck = wrap(chuck)
def rot(self, irc, msg, args, text):
"<text> Encode text with ROT13"
"""
<text> Encode text with ROT13
"""
irc.reply(codecs.encode(text, "rot_13"))
rot = wrap(rot, ['text'])
def unrot(self, irc, msg, args, text):
"<text> Decode ROT13 text"
"""
<text> Decode ROT13 text
"""
irc.reply(codecs.decode(text, "rot_13"))
unrot = wrap(unrot, ['text'])