dgw / sopel-rep

Lets users "luv" and "h8" other users on IRC. Functional clone of a mIRC script someone used in a channel I was in.
Other
0 stars 1 forks source link

Nicks with special characters handled incorrectly #9

Closed dgw closed 8 years ago

dgw commented 8 years ago

Probably due to missing conversion to Identifier objects before manipulating nicks with .lower() and looking for them in bot.privileges elements.

>>> from sopel.tools import Identifier
>>> s = 'Kaitou^'
>>> i = Identifier('Kaitou^')
>>> s.lower()
'kaitou^'
>>> i.lower()
u'kaitou~'