This commit is contained in:
deathbybandaid 2022-02-24 11:27:14 -05:00
parent 95f0aee41e
commit 418e85da00

View File

@ -18,7 +18,6 @@ def prerun():
# This will give sopel the appearance of recieving individual commands
if comrun.is_multi_command:
if not comrun.is_rulematch:
bot.say("not a rule match")
sb.commands.dispatch(comrun.command)
elif comrun.is_rulematch:
bot.say("is a rule match")
@ -139,18 +138,18 @@ class ComRun():
def has_command_been_sanitized(self):
trigger_command = sb.commands.get_command_from_trigger(self.trigger)
multi_split_count = self.multi_split_count
pipe_split_count = self.pipe_split_count
# multi_split_count = self.multi_split_count
# pipe_split_count = self.pipe_split_count
if trigger_command != self.command["trigger_command"]:
return True
elif multi_split_count != "N/A":
if multi_split_count != len(self.commands):
return True
# elif multi_split_count != "N/A":
# if multi_split_count != len(self.commands):
# return True
elif pipe_split_count != "N/A":
if pipe_split_count != len(self.commands):
return True
# elif pipe_split_count != "N/A":
# if pipe_split_count != len(self.commands):
# return True
return False