Merge pull request #141 from rootcoma/formatting

Removing zero-width space hackery
This commit is contained in:
tannn 2013-11-17 20:08:53 -08:00
commit bfaf911575
1 changed files with 2 additions and 2 deletions

View File

@ -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):
"""[<channel>] <num>