Fix getting user records by nickname
Use -1 to refer to unlimited records instead of an arbitrarily large number.
This commit is contained in:
parent
c92e618076
commit
a027a0b4f6
|
@ -132,7 +132,7 @@ def escape(text):
|
|||
|
||||
def getUserByNick(name, nick):
|
||||
gnamespace = "live.who.%s" % name
|
||||
usermatch = main.r.sscan(gnamespace, match=escape(nick)+"!*", count=9999999)
|
||||
usermatch = main.r.sscan(gnamespace, match=escape(nick)+"!*", count=-1)
|
||||
if usermatch[1] == []:
|
||||
return False
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue