summaryrefslogtreecommitdiff
path: root/plugins/revstr.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/revstr.py')
-rw-r--r--plugins/revstr.py8
1 files changed, 8 insertions, 0 deletions
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]