Skip to content

Commit

Permalink
Version 0.4.3 Beta (2021-08-29)
Browse files Browse the repository at this point in the history
  • Loading branch information
tretdm authored Aug 29, 2021
1 parent cbce340 commit eb91cae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions flight.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ def run(self):
self.realname = profiles[self.parent.ui.tableWidget.item(self.parent.ui.tableWidget.currentRow(), 0).text()]['realname']
self.hostname = profiles[self.parent.ui.tableWidget.item(self.parent.ui.tableWidget.currentRow(), 0).text()]['hostname']
except:
pass
self.realname = self.username
self.hostname = self.hostname
fernet = Fernet(profiles[self.parent.ui.tableWidget.item(self.parent.ui.tableWidget.currentRow(), 0).text()]['EncryptCode'].encode('UTF-8'))
self.password = fernet.decrypt(bytes(profiles[self.parent.ui.tableWidget.item(self.parent.ui.tableWidget.currentRow(), 0).text()]['Password'], 'UTF-8')).decode(self.encoding)
try:
Expand All @@ -85,7 +86,7 @@ def run(self):
print('Connecting to {0}...'.format(self.server))
self.socket.setblocking(True)
try:
if self.hostname == None and self.realname == None and self.hostname == '' and self.realname == '':
if self.hostname == None or self.realname == None or self.hostname == '' or self.realname == '':
self.socket.send(bytes("USER " + self.username + " " + self.username + " " + self.username + " :Member\n", self.encoding))
else:
self.socket.send(bytes("USER " + self.username + " " + self.hostname + " " + self.username + " :" + self.realname + "\n", self.encoding))
Expand Down

0 comments on commit eb91cae

Please sign in to comment.