RelayNext: fix undefined variable

This commit is contained in:
James Lu 2021-05-29 13:22:23 -07:00
parent c772ed1316
commit 3b917e7221

View File

@ -399,7 +399,7 @@ class RelayNext(callbacks.Plugin):
If --count is specified, only the amount of users in the relay is given."""
opts = dict(optlist)
if irc.nested and 'count' not in keys:
if irc.nested and 'count' not in opts:
irc.error('This command cannot be nested.', Raise=True)
try: