Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
probicheaux committed Feb 21, 2021
1 parent 47fc4b8 commit 52cf14e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion queue_bot/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def clear(self, msg):
queue_name = parse_args(msg, '!sqclear', ['game_name'], num_splits=1, formatters=[lambda z: str(z)])[0]
if isint(queue_name):
queue_index = int(queue_name) - 1
if not (0 < queue_name <= len(self.queue_list)):
if not (0 <= queue_index < len(self.queue_list)):
err_msg = "Msg must be !sqjoin <int> <queue_name_or_number>"
user_msg = "For you gotta pick a number between *1* and *{}* idiote".format(len(self.queue_list))
raise SmusError(err_msg, user_msg)
Expand Down

0 comments on commit 52cf14e

Please sign in to comment.