diff options
author | mathieui <mathieui@mathieui.net> | 2014-04-01 23:04:10 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2014-04-01 23:04:10 +0200 |
commit | 3c688335af10db87ee59955b25fd97425151cb01 (patch) | |
tree | d80a9d7d2bb53b220552b8112dde0265e0060861 /plugins/capslock.py | |
parent | d353584abd54c82503635e4f27546e08bcc3630e (diff) | |
download | poezio-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/capslock.py')
-rw-r--r-- | plugins/capslock.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/capslock.py b/plugins/capslock.py index 1b9aafb7..87200ade 100644 --- a/plugins/capslock.py +++ b/plugins/capslock.py @@ -2,6 +2,7 @@ Once loaded, everything you will send will be IN CAPITAL LETTERS. """ from plugin import BasePlugin +import xhtml class Plugin(BasePlugin): def init(self): @@ -10,4 +11,4 @@ class Plugin(BasePlugin): self.api.add_event_handler('private_say', self.caps) def caps(self, msg, tab): - msg['body'] = msg['body'].upper() + msg['body'] = xhtml.clean_text(msg['body']).upper() |