From c5dbf28ed69ac72c4322188c1f0559694941b5c3 Mon Sep 17 00:00:00 2001 From: rootcoma Date: Sun, 17 Nov 2013 19:43:59 -0800 Subject: [PATCH] Removing zero-width space hackery --- plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.py b/plugin.py index 77aecd2..b2c77c6 100644 --- a/plugin.py +++ b/plugin.py @@ -163,8 +163,8 @@ class TriviaTime(callbacks.Plugin): def addZeroWidthSpace(self, text): if len(text) <= 1: return text - s = '%s​%s' % (text[:1], text[1:]) # WARNING: this has a zero width space, though its invisible - return s + s = u'%s\u200b%s' % (text[:1], text[1:]) + return s.encode('utf-8') def acceptedit(self, irc, msg, arg, user, channel, num): """[]