mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
tilde might be more than one byte
This commit is contained in:
parent
44f5de01ff
commit
5d15de9367
@ -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 # <hostname> has a maximum length of 63 characters.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user