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:
commit
d0436b9f4d
2
utils.py
2
utils.py
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user