3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-24 11:42:51 +01:00

relay: use the network's full name in spawning servers

This commit is contained in:
James Lu 2015-09-20 12:11:41 -07:00
parent 4c45533ecb
commit 7b2d1d8129

View File

@ -148,7 +148,10 @@ def getRemoteSid(irc, remoteirc):
sid = relayservers[irc.name][remoteirc.name]
except KeyError:
try:
sid = irc.proto.spawnServer('%s.relay' % remoteirc.name)
sid = irc.proto.spawnServer('%s.relay' % remoteirc.name,
desc="PyLink Relay network - %s" %
(remoteirc.serverdata.get('netname')\
or remoteirc.name))
except ValueError: # Network not initialized yet.
log.exception('(%s) Failed to spawn server for %r:',
irc.name, remoteirc.name)