summaryrefslogtreecommitdiff
path: root/plugins/revstr.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-04-01 23:04:10 +0200
committermathieui <mathieui@mathieui.net>2014-04-01 23:04:10 +0200
commit3c688335af10db87ee59955b25fd97425151cb01 (patch)
treed80a9d7d2bb53b220552b8112dde0265e0060861 /plugins/revstr.py
parentd353584abd54c82503635e4f27546e08bcc3630e (diff)
downloadpoezio-3c688335af10db87ee59955b25fd97425151cb01.tar.gz
poezio-3c688335af10db87ee59955b25fd97425151cb01.tar.bz2
poezio-3c688335af10db87ee59955b25fd97425151cb01.tar.xz
poezio-3c688335af10db87ee59955b25fd97425151cb01.zip
Fix #2453 (malformed stanzas with stupid plugins)
remove xhtml prior to performing stuff
Diffstat (limited to 'plugins/revstr.py')
-rw-r--r--plugins/revstr.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/revstr.py b/plugins/revstr.py
index 4ca154b7..53838257 100644
--- a/plugins/revstr.py
+++ b/plugins/revstr.py
@@ -3,6 +3,7 @@ Reverse everything you say (``Je proteste énergiquement`` will become
``tnemeuqigrené etsetorp eJ``)
"""
from plugin import BasePlugin
+import xhtml
class Plugin(BasePlugin):
def init(self):
@@ -11,4 +12,4 @@ class Plugin(BasePlugin):
self.api.add_event_handler('private_say', self.revstr)
def revstr(self, msg, tab):
- msg['body'] = msg['body'][::-1]
+ msg['body'] = xhtml.clean_text(msg['body'])[::-1]