From b0e9e0919f448629d2682f1e9b5970940a2af736 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Tue, 18 Dec 2012 02:08:38 +0100 Subject: super useful plugin that does a revstr on your messages. --- plugins/revstr.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 plugins/revstr.py diff --git a/plugins/revstr.py b/plugins/revstr.py new file mode 100644 index 00000000..d66e6411 --- /dev/null +++ b/plugins/revstr.py @@ -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] -- cgit v1.2.3