Skip to content

Commit 0746a73

Browse files
committed
fix poll tie detection
1 parent 861e68e commit 0746a73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

protobot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#####################################
2828
#
2929
COMMAND_PREFIX = '!' #
30-
VERSION = "v0.5.1-alpha" #
30+
VERSION = "v0.5.2-alpha" #
3131
ACTIVITY = discord.Game("!help") #
3232
LOG_LEVEL = logging.INFO #
3333
#
@@ -398,7 +398,7 @@ async def count_poll_results(message_sent, poll_time_in_sec):
398398
# Check for ties
399399
tie = False
400400
for result in results.keys():
401-
if results[result] == results[winner]:
401+
if results[result] == results[winner] and result != winner:
402402
tie = True
403403

404404
# If there's a tie, find out which results tied and make a string out of them, then print results

0 commit comments

Comments
 (0)