From 98e668eaab64005cdccc204a787658743d3ece0f Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sat, 2 Feb 2019 10:42:40 +0100 Subject: irc: Fail if bot command is empty --- crocoite/irc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crocoite') diff --git a/crocoite/irc.py b/crocoite/irc.py index 855d0b0..2e14537 100644 --- a/crocoite/irc.py +++ b/crocoite/irc.py @@ -321,7 +321,7 @@ class ArgparseBot (bottom.Client): except Exception as e: reply (f'{e.args[1]} -- {e.args[0].format_usage ()}') return - if not args: + if not args or not hasattr (args, 'func'): reply (f'Sorry, I don’t understand {command}') return -- cgit v1.2.3