Fix syntax error in redis query
This commit is contained in:
parent
45070b06e2
commit
8103c16253
|
@ -151,7 +151,7 @@ def getUserByNick(name, nick):
|
||||||
warn("Entry doesn't exist: %s on %s - attempting auxiliary lookup" % (nick, mapspace))
|
warn("Entry doesn't exist: %s on %s - attempting auxiliary lookup" % (nick, mapspace))
|
||||||
#return False
|
#return False
|
||||||
# legacy code below - remove when map is reliable
|
# legacy code below - remove when map is reliable
|
||||||
usermatch = main.r.sscan(gnamespace, match=escape(nick)+"!*", count=-1)
|
usermatch = main.r.sscan(gnamespace, match=escape(nick)+"!*", count=999999999)
|
||||||
if usermatch[1] == []:
|
if usermatch[1] == []:
|
||||||
warn("No matches found for user query: %s on %s" % (nick, name))
|
warn("No matches found for user query: %s on %s" % (nick, name))
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue