From a027a0b4f6c21c60d307695df54c9520afee9724 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Tue, 8 Oct 2019 20:53:39 +0100 Subject: [PATCH] Fix getting user records by nickname Use -1 to refer to unlimited records instead of an arbitrarily large number. --- modules/userinfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/userinfo.py b/modules/userinfo.py index e5cc764..a569c42 100644 --- a/modules/userinfo.py +++ b/modules/userinfo.py @@ -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: