fix music change when showname is unicode
This commit is contained in:
parent
9af32ac411
commit
23cd025c3b
@ -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) + '#%')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user