Put in actual hostname for alternative server (pesterchum.xyz). kaliope.ddns.net has been
commented out until further communication.
This commit is contained in:
parent
a43cbbfc0a
commit
590d4a5c77
1 changed files with 9 additions and 9 deletions
|
@ -3048,11 +3048,11 @@ class MainProgram(QtCore.QObject):
|
|||
|
||||
msgBox = QtGui.QMessageBox()
|
||||
msgBox.setIcon(QtGui.QMessageBox.Information)
|
||||
msgBox.setWindowTitle("Choose a server.")
|
||||
msgBox.setWindowTitle("Please choose a server")
|
||||
msgBox.setText("Which server do you want to connect to?")
|
||||
msgBox.addButton(QtGui.QPushButton("ghostDunk's server (Official)"), QtGui.QMessageBox.YesRole)
|
||||
msgBox.addButton(QtGui.QPushButton("turntechCatnip's server"), QtGui.QMessageBox.NoRole)
|
||||
msgBox.addButton(QtGui.QPushButton('kaliope.ddns.net'), QtGui.QMessageBox.RejectRole)
|
||||
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('kaliope.ddns.net'), QtGui.QMessageBox.RejectRole)
|
||||
ret = msgBox.exec_()
|
||||
reply = msgBox.buttonRole(msgBox.clickedButton())
|
||||
|
||||
|
@ -3063,11 +3063,11 @@ class MainProgram(QtCore.QObject):
|
|||
print("Server is: irc.mindfang.org")
|
||||
config['SERVER']['server'] = 'irc.mindfang.org'
|
||||
if (reply==QtGui.QMessageBox.NoRole):
|
||||
print("Server is: 178.84.124.125")
|
||||
config['SERVER']['server'] = '178.84.124.125'
|
||||
if (reply==QtGui.QMessageBox.RejectRole):
|
||||
print("Server is: kaliope.ddns.net")
|
||||
config['SERVER']['server'] = 'kaliope.ddns.net'
|
||||
print("Server is: pesterchum.xyz")
|
||||
config['SERVER']['server'] = 'pesterchum.xyz'
|
||||
#if (reply==QtGui.QMessageBox.RejectRole):
|
||||
# print("Server is: kaliope.ddns.net")
|
||||
# config['SERVER']['server'] = 'kaliope.ddns.net'
|
||||
|
||||
#Write result to server.ini
|
||||
with open('server.ini', 'w') as configfile:
|
||||
|
|
Loading…
Reference in a new issue