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