test
This commit is contained in:
parent
95f0aee41e
commit
418e85da00
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user