Merge pull request #965 from GLolol/mirccolors-dict

ircutils: also map zfill'd versions of integers in mircColors
This commit is contained in:
Valentin Lorentz 2014-12-22 00:16:05 +01:00
commit a0fe2ad180
1 changed files with 1 additions and 0 deletions

View File

@ -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"""