IndexError fix

* prevent IndexError when help is called
This commit is contained in:
nico 2018-10-02 00:31:43 +02:00
parent 294a728b0f
commit 83e5b1f0aa

View file

@ -120,6 +120,7 @@ class QueryBot(slixmpp.ClientXMPP):
if keyword == '!help':
reply.append(StaticAnswers().gen_help())
continue
try:
target = words[index + 1]