3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

Merge branch 'master' into devel

This commit is contained in:
James Lu 2015-12-18 21:44:15 -08:00
commit d0436b9f4d

View File

@ -138,7 +138,7 @@ def toLower(irc, text):
def nickToUid(irc, nick): def nickToUid(irc, nick):
"""Returns the UID of a user named nick, if present.""" """Returns the UID of a user named nick, if present."""
nick = toLower(irc, nick) nick = toLower(irc, nick)
for k, v in irc.users.items(): for k, v in irc.users.copy().items():
if toLower(irc, v.nick) == nick: if toLower(irc, v.nick) == nick:
return k return k