fix music change when showname is unicode

This commit is contained in:
cidoku 2025-03-31 15:42:23 -03:00
parent 9af32ac411
commit 23cd025c3b

View File

@ -2325,7 +2325,7 @@ class GUI(QtGui.QWidget):
def sendMC(self, content): def sendMC(self, content):
if "cccc_ic_support" in self.features and self.showname: if "cccc_ic_support" in self.features and self.showname:
self.tcp.send('MC#' + content + '#' + str(self.mychar) + '#' + self.showname + '#%') self.tcp.send('MC#' + content + '#' + str(self.mychar) + '#' + self.showname.decode('utf-8') + '#%')
else: else:
self.tcp.send('MC#' + content + '#' + str(self.mychar) + '#%') self.tcp.send('MC#' + content + '#' + str(self.mychar) + '#%')