summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2012-12-18 02:08:38 +0100
committerFlorent Le Coz <louiz@louiz.org>2012-12-18 02:08:38 +0100
commitb0e9e0919f448629d2682f1e9b5970940a2af736 (patch)
tree68e60139aa066b1855960dfa11877f0c00ba2fe5
parentca7489fd8f17dbd437709bc81e3bad8ffef94345 (diff)
downloadpoezio-b0e9e0919f448629d2682f1e9b5970940a2af736.tar.gz
poezio-b0e9e0919f448629d2682f1e9b5970940a2af736.tar.bz2
poezio-b0e9e0919f448629d2682f1e9b5970940a2af736.tar.xz
poezio-b0e9e0919f448629d2682f1e9b5970940a2af736.zip
super useful plugin that does a revstr on your messages.
-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]