3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-17 23:52:49 +01:00

relay: don't break autoconnect anymore when there's a server conflict

This reverts most of commits 5c7524b and f2a5e1d.
This commit is contained in:
James Lu 2016-11-07 21:52:17 -08:00
parent 4246a3d113
commit 44743d860e

View File

@ -7,7 +7,6 @@ from collections import defaultdict
from pylinkirc import utils, world, conf
from pylinkirc.log import log
from pylinkirc.coremods import control
from pylinkirc.coremods import permissions
### GLOBAL (statekeeping) VARIABLES
@ -274,10 +273,7 @@ def spawnRelayServer(irc, remoteirc):
log.exception('(%s) Failed to spawn server for %r (possible jupe?):',
irc.name, remoteirc.name)
# We will just bail here. Disconnect the bad network.
try:
control.remove_network(irc)
except KeyError:
pass
irc.disconnect()
return
# Mark the server as a relay server