Skip to content

Commit

Permalink
added defaults for the timeout configstrings since minqlx appears to …
Browse files Browse the repository at this point in the history
…return None compared to shinqlx returning the empty string
  • Loading branch information
mgaertne committed Oct 1, 2024
1 parent 257e7c0 commit 30ce0c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/thirtysecwarn.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ def play_thirty_second_warning(self, warner_thread_name):
return
if self.warner_thread_name != warner_thread_name:
return
timeout_begin = minqlx.get_configstring(669)
timeout_begin = minqlx.get_configstring(669) or ""
if len(timeout_begin) != 0:
return
round_start = int(minqlx.get_configstring(662))
timeout_end = minqlx.get_configstring(670)
timeout_end = minqlx.get_configstring(670) or ""
if len(timeout_end) != 0 and round_start < int(timeout_end):
return

Expand Down

0 comments on commit 30ce0c7

Please sign in to comment.