Merge pull request #141 from rootcoma/formatting
Removing zero-width space hackery
This commit is contained in:
commit
bfaf911575
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue