From 1b3a7b2d3edaed807021bda8aaaf3801d7fbbdb7 Mon Sep 17 00:00:00 2001 From: GLolol Date: Sun, 21 Dec 2014 14:19:31 -0500 Subject: [PATCH] ircutils: also map zfill'd versions of integers in mircColors --- src/ircutils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ircutils.py b/src/ircutils.py index 7f552e00e..9768e676d 100644 --- a/src/ircutils.py +++ b/src/ircutils.py @@ -663,6 +663,7 @@ for (k, v) in mircColors.items(): if k is not None: # Ignore empty string for None. sv = str(v) mircColors[sv] = sv + mircColors[sv.zfill(2)] = sv def standardSubstitute(irc, msg, text, env=None): """Do the standard set of substitutions on text, and return it"""