From d2d25f94d2a737fe0bf2d7727d7fb0575e9c9210 Mon Sep 17 00:00:00 2001 From: Krytarik Raido Date: Fri, 14 Apr 2023 16:56:04 +0200 Subject: [PATCH] Improve upon previous commit. --- plugin.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin.py b/plugin.py index ff06adf..20ed40b 100644 --- a/plugin.py +++ b/plugin.py @@ -62,10 +62,11 @@ def checkAddressed(irc, text, channel): def isCommand(cbs, args): for c in cbs: - if args[0] == c.name().lower() and len(args) > 1: - return isCommand([c], args[1:]) if c.isCommandMethod(args[0]): return True + if args[0] == c.name().lower() and len(args) > 1 \ + and isCommand([c], args[1:]): + return True if isCommand(c.cbs, args): return True