fix formatting
This commit is contained in:
parent
80d354b1a7
commit
dc9bb07761
|
@ -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'])
|
||||
|
||||
|
|
Loading…
Reference in New Issue