tilde might be more than one byte

This commit is contained in:
deathbybandaid 2019-10-01 14:36:57 -04:00
parent 44f5de01ff
commit 5d15de9367

View File

@ -97,7 +97,7 @@ class ToolsOSD:
except AttributeError: except AttributeError:
hostmaskbytes = (len((bot.nick).encode('utf-8')) # Bot's NICKLEN hostmaskbytes = (len((bot.nick).encode('utf-8')) # Bot's NICKLEN
+ 1 # (! separator) + 1 # (! separator)
+ 1 # (for the optional ~ in user) + len('~') # (for the optional ~ in user)
+ 9 # max username length (was 12) + 9 # max username length (was 12)
+ 1 # (@ separator) + 1 # (@ separator)
+ 63 # <hostname> has a maximum length of 63 characters. + 63 # <hostname> has a maximum length of 63 characters.