aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar jesopo2018-11-02 13:14:42 +0000
committerGravatar jesopo2018-11-02 13:14:42 +0000
commit9fe7815c17623ddedd8bfc8d5b281b778a73cc43 (patch)
tree556660e3d6c58cd1b5638cf3eb29329424e4b61d /src
parentShow wallet balances in a human format (with ","s) (diff)
signature
utils.irc.color should take `int` for foreground/background, not str
Diffstat (limited to 'src')
-rw-r--r--src/utils/irc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/irc.py b/src/utils/irc.py
index b7819e7c..49e118f4 100644
--- a/src/utils/irc.py
+++ b/src/utils/irc.py
@@ -98,7 +98,7 @@ FONT_BOLD, FONT_ITALIC, FONT_UNDERLINE, FONT_INVERT = ("\x02", "\x1D",
FONT_COLOR, FONT_RESET = "\x03", "\x0F"
REGEX_COLOR = re.compile("%s\d\d(?:,\d\d)?" % FONT_COLOR)
-def color(s: str, foreground: str, background: str=None) -> str:
+def color(s: str, foreground: int, background: int=None) -> str:
foreground = str(foreground).zfill(2)
if background:
background = str(background).zfill(2)