Merge branch 'cherry-pick-283d43ac' into 'tildeverse'

Merge branch 'patch-1' into 'master'

See merge request oneseveneight/tcirc!3
This commit is contained in:
oneseveneight 2018-10-21 04:04:51 +00:00
commit dde515b0f6
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ def irc_to_mc():
irc.send(bytes('PRIVMSG ' + channel + ' :' + response + '\n', 'utf8'))
print('PRIVMSG ' + channel + ' :' + response)
else:
text = re.sub("([\x03\x0f])([0-9A-Fa-f](?:,[0-9A-Fa-f])?)?",irc_to_mc_colors,text)
text = re.sub("([\x03\x0f])([0-9A-Fa-f]{1,2}(?:,[0-9A-Fa-f]{1,2})?)?",irc_to_mc_colors,text)
rcon.command('say ' + text[:-2])
elif 'JOIN' in text or 'PART' in text: