Fix getting user records by nickname

Use -1 to refer to unlimited records instead of an arbitrarily large
number.
This commit is contained in:
Mark Veidemanis 2019-10-08 20:53:39 +01:00
parent c92e618076
commit a027a0b4f6
1 changed files with 1 additions and 1 deletions

View File

@ -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: