fix MC packet

This commit is contained in:
cidoku 2026-02-08 20:19:47 -03:00
parent cd51a065c9
commit 22357e3169
2 changed files with 2 additions and 2 deletions

View File

@ -4813,7 +4813,7 @@ class GUI(QtGui.QWidget):
name = 'char id %d' % charid
if showname:
name += " (" + showname.decode("utf-8") + ")"
name += " (" + showname + ")"
self.ICLog.append(timestamp + '%s changed the music to %s' % (name, music))
else:
self.ICLog.append(timestamp + 'The music was changed to %s' % music)

View File

@ -118,7 +118,7 @@ def handlePackets(caller, total, record=True):
music = decodeAOString(network[0])
if not music: return
charid = int(network[1])
showname = decodeAOString(network[2]) if len(network) > 2 else None
showname = decodeAOString(network[2].decode("utf-8")) if len(network) > 2 else None
caller.playMusicRequested.emit(music, charid, showname)
elif header == 'BN':