diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2019-02-02 10:42:40 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2019-02-02 10:42:40 +0100 |
commit | 98e668eaab64005cdccc204a787658743d3ece0f (patch) | |
tree | f943fbe15f32ed843adc736b5fc61f5be2fd9bd5 /crocoite | |
parent | 43cb81ff03c574c45da325c9f8149b8b3282f070 (diff) | |
download | crocoite-98e668eaab64005cdccc204a787658743d3ece0f.tar.gz crocoite-98e668eaab64005cdccc204a787658743d3ece0f.tar.bz2 crocoite-98e668eaab64005cdccc204a787658743d3ece0f.zip |
irc: Fail if bot command is empty
Diffstat (limited to 'crocoite')
-rw-r--r-- | crocoite/irc.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |