From 5d15de9367bfbb79f96333dd58fbb739d11f95db Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Tue, 1 Oct 2019 14:36:57 -0400 Subject: [PATCH] tilde might be more than one byte --- sopel_modules/SpiceBot/osd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sopel_modules/SpiceBot/osd.py b/sopel_modules/SpiceBot/osd.py index e665e62..2b86ad7 100644 --- a/sopel_modules/SpiceBot/osd.py +++ b/sopel_modules/SpiceBot/osd.py @@ -97,7 +97,7 @@ class ToolsOSD: except AttributeError: hostmaskbytes = (len((bot.nick).encode('utf-8')) # Bot's NICKLEN + 1 # (! separator) - + 1 # (for the optional ~ in user) + + len('~') # (for the optional ~ in user) + 9 # max username length (was 12) + 1 # (@ separator) + 63 # has a maximum length of 63 characters.