diff options
Diffstat (limited to 'plugins/spaces.py')
-rw-r--r-- | plugins/spaces.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/spaces.py b/plugins/spaces.py index 7885ede6..dc6197ee 100644 --- a/plugins/spaces.py +++ b/plugins/spaces.py @@ -3,6 +3,7 @@ Insert a space between each character, in messages that you send, making them horrible to read. """ 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.add_spaces) def add_spaces(self, msg, tab): - msg['body'] = " ".join(x for x in msg['body']) + msg['body'] = " ".join(x for x in xhtml.clean_text(msg['body'])) |