mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 21:19:31 +01:00
relay: use the network's full name in spawning servers
This commit is contained in:
parent
4c45533ecb
commit
7b2d1d8129
@ -148,7 +148,10 @@ def getRemoteSid(irc, remoteirc):
|
|||||||
sid = relayservers[irc.name][remoteirc.name]
|
sid = relayservers[irc.name][remoteirc.name]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
try:
|
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.
|
except ValueError: # Network not initialized yet.
|
||||||
log.exception('(%s) Failed to spawn server for %r:',
|
log.exception('(%s) Failed to spawn server for %r:',
|
||||||
irc.name, remoteirc.name)
|
irc.name, remoteirc.name)
|
||||||
|
Loading…
Reference in New Issue
Block a user