strip evidence names

This commit is contained in:
cidoku 2025-02-27 02:54:16 -03:00
parent 1e59144b51
commit cc33d71e3f

View File

@ -2238,7 +2238,7 @@ class gui(QtGui.QWidget):
except: except:
pass pass
self.icLog.append('[%d:%.2d] %s: %s\n%s presented an evidence: %s' % (t[3], t[4], logcharname, chatmsg, f_char, eviname)) self.icLog.append('[%d:%.2d] %s: %s\n%s presented an evidence: %s' % (t[3], t[4], logcharname, chatmsg, f_char, eviname.strip()))
self.is_additive = (m_chatmessage[ADDITIVE] == "1") self.is_additive = (m_chatmessage[ADDITIVE] == "1")
@ -3207,7 +3207,7 @@ class gui(QtGui.QWidget):
evi[0] = decode_ao_str(evi[0].decode('utf-8')) evi[0] = decode_ao_str(evi[0].decode('utf-8'))
evi[1] = decode_ao_str(evi[1].decode('utf-8')) evi[1] = decode_ao_str(evi[1].decode('utf-8'))
evi[2] = decode_ao_str(evi[2].decode('utf-8')) evi[2] = decode_ao_str(evi[2].decode('utf-8'))
self.evidencedropdown.addItem(evi[0]) self.evidencedropdown.addItem(evi[0].strip())
if not self.evidence: if not self.evidence:
self.evidencedropdown.setCurrentIndex(0) self.evidencedropdown.setCurrentIndex(0)