diff --git a/plugins/relay.py b/plugins/relay.py index 65263ae..a8ba628 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -247,6 +247,9 @@ def spawnRelayServer(irc, remoteirc): except ValueError: # Network not initialized yet, or a server name conflict. log.exception('(%s) Failed to spawn server for %r:', irc.name, remoteirc.name) + # We will just bail here. Disconnect the bad network. + handle_disconnect(irc, None, 'PYLINK_DISCONNECT_RELAY_FORCED', {}) + irc.disconnect() raise # Mark the server as a relay server