Skip to content

Commit 0c6ad95

Browse files
committed
@Zarthus This might be a bug in your code, there's no IRC color 16 as far as I can tell?
1 parent 2b2f434 commit 0c6ad95

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cloudbot/util/colors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def get_color(colour, return_formatted=True):
9292
raise KeyError("The colour '{}' is not in the list of available colours.".format(colour))
9393

9494
if colour == "random": # Special keyword for a random colour
95-
rand = randint(0, 16)
95+
rand = randint(0, 15)
9696
if rand < 10: # Prepend '0' before colour so it always is double digits.
9797
rand = "0" + str(rand)
9898
rand = str(rand)

0 commit comments

Comments
 (0)