more guards against empty packet parameters
This commit is contained in:
parent
aef5984d70
commit
f0ee7e08c5
10
gameview.py
10
gameview.py
@ -3689,10 +3689,12 @@ class GUI(QtGui.QWidget):
|
|||||||
self.sideChar.hide()
|
self.sideChar.hide()
|
||||||
self.sideChar.move(0,0)
|
self.sideChar.move(0,0)
|
||||||
else:
|
else:
|
||||||
if "effects" in self.features:
|
got_otherCharId = -1
|
||||||
got_otherCharId = int(self.mChatMessage[OTHER_CHARID].split("^")[0])
|
if self.mChatMessage[OTHER_CHARID]:
|
||||||
else:
|
if "effects" in self.features:
|
||||||
got_otherCharId = int(self.mChatMessage[OTHER_CHARID])
|
got_otherCharId = int(self.mChatMessage[OTHER_CHARID].split("^")[0])
|
||||||
|
else:
|
||||||
|
got_otherCharId = int(self.mChatMessage[OTHER_CHARID])
|
||||||
|
|
||||||
if got_otherCharId > -1: # user is paired
|
if got_otherCharId > -1: # user is paired
|
||||||
self.sideChar.show()
|
self.sideChar.show()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user