Allow colour/color codes as the first character of MT nicknames
parent
bd01d79dd3
commit
687b394f68
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue