Allow colour/color codes as the first character of MT nicknames

master
luk3yx 2019-02-12 17:29:32 +13:00
parent bd01d79dd3
commit 687b394f68
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,8 @@ def _handle_privmsg(irc, hostmask, args):
# Check for MT players
if msg.startswith('<'):
n = msg.split(' ', 1)
if len(n) > 1 and n[0].endswith('>') and n[0][1].isalnum():
if len(n) > 1 and n[0].endswith('>') and (n[0][1].isalnum() or
n[0].startswith('\x03')):
nick = '{}@{}'.format(n[0][1:-1], nick)
msg = n[1].strip()