super useful plugin that does a revstr on your messages.

This commit is contained in:
Florent Le Coz 2012-12-18 02:08:38 +01:00
parent ca7489fd8f
commit b0e9e0919f

8
plugins/revstr.py Normal file
View file

@ -0,0 +1,8 @@
from plugin import BasePlugin
class Plugin(BasePlugin):
def init(self):
self.add_event_handler('muc_say', self.revstr)
def revstr(self, msg, tab):
msg['body'] = msg['body'][::-1]