Readded 3rd server because why not

This commit is contained in:
Hi 2020-10-07 23:54:28 +02:00
parent 64447c7e93
commit 4af7730f35

View file

@ -3052,7 +3052,7 @@ class MainProgram(QtCore.QObject):
msgBox.setText("Which server do you want to connect to?") msgBox.setText("Which server do you want to connect to?")
msgBox.addButton(QtGui.QPushButton("irc.mindfang.org (Official)"), QtGui.QMessageBox.YesRole) msgBox.addButton(QtGui.QPushButton("irc.mindfang.org (Official)"), QtGui.QMessageBox.YesRole)
msgBox.addButton(QtGui.QPushButton("pesterchum.xyz (Unofficial)"), QtGui.QMessageBox.NoRole) msgBox.addButton(QtGui.QPushButton("pesterchum.xyz (Unofficial)"), QtGui.QMessageBox.NoRole)
#msgBox.addButton(QtGui.QPushButton('kaliope.ddns.net'), QtGui.QMessageBox.RejectRole) msgBox.addButton(QtGui.QPushButton('kaliope.ddns.net'), QtGui.QMessageBox.RejectRole)
ret = msgBox.exec_() ret = msgBox.exec_()
reply = msgBox.buttonRole(msgBox.clickedButton()) reply = msgBox.buttonRole(msgBox.clickedButton())
@ -3065,9 +3065,9 @@ class MainProgram(QtCore.QObject):
if (reply==QtGui.QMessageBox.NoRole): if (reply==QtGui.QMessageBox.NoRole):
print("Server is: pesterchum.xyz") print("Server is: pesterchum.xyz")
config['SERVER']['server'] = 'pesterchum.xyz' config['SERVER']['server'] = 'pesterchum.xyz'
#if (reply==QtGui.QMessageBox.RejectRole): if (reply==QtGui.QMessageBox.RejectRole):
# print("Server is: kaliope.ddns.net") print("Server is: kaliope.ddns.net")
# config['SERVER']['server'] = 'kaliope.ddns.net' config['SERVER']['server'] = 'kaliope.ddns.net'
#Write result to server.ini #Write result to server.ini
with open('server.ini', 'w') as configfile: with open('server.ini', 'w') as configfile: