Fix message parameters edge case

Sometimes an incoming message won't have any content (for some reason).
I haven't looked too deeply into the origins of it. This just bypasses
that case and returns early.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2024-08-30 10:00:23 -07:00
parent fcb4bd6df1
commit 6a6a00412a

View File

@@ -193,6 +193,8 @@ class Bot:
if who.nick == self.server_config.nick:
# Don't raise on_message events for ourselves
return
if len(message.paremeters) == 1:
return
line = message.parameters[1]
# TL;DR OF THE BELOW: if the first parameter looks like a channel in