mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-25 04:02:45 +01:00
pr/insp: call endburst AFTER the server object is initialized...
derp
This commit is contained in:
parent
59295f921b
commit
994b2961ee
@ -73,6 +73,8 @@ def sjoinServer(irc, server, channel, users, ts=None, modes=None):
|
|||||||
raise LookupError('No such PyLink PseudoClient exists.')
|
raise LookupError('No such PyLink PseudoClient exists.')
|
||||||
if ts is None:
|
if ts is None:
|
||||||
ts = irc.channels[channel].ts
|
ts = irc.channels[channel].ts
|
||||||
|
log.debug("sending SJOIN to %s%s with ts %s (that's %r)", channel, irc.name, ts,
|
||||||
|
time.strftime("%c", time.localtime(ts)))
|
||||||
if modes is None:
|
if modes is None:
|
||||||
modes = irc.channels[channel].modes
|
modes = irc.channels[channel].modes
|
||||||
uids = []
|
uids = []
|
||||||
@ -590,9 +592,9 @@ def spawnServer(irc, name, sid=None, uplink=None, desc='PyLink Server', endburst
|
|||||||
if not utils.isServerName(name):
|
if not utils.isServerName(name):
|
||||||
raise ValueError('Invalid server name %r' % name)
|
raise ValueError('Invalid server name %r' % name)
|
||||||
_sendFromServer(irc, uplink, 'SERVER %s * 1 %s :%s' % (name, sid, desc))
|
_sendFromServer(irc, uplink, 'SERVER %s * 1 %s :%s' % (name, sid, desc))
|
||||||
|
irc.servers[sid] = IrcServer(uplink, name, internal=True)
|
||||||
if endburst:
|
if endburst:
|
||||||
endburstServer(irc, sid)
|
endburstServer(irc, sid)
|
||||||
irc.servers[sid] = IrcServer(uplink, name, internal=True)
|
|
||||||
return sid
|
return sid
|
||||||
|
|
||||||
def endburstServer(irc, sid):
|
def endburstServer(irc, sid):
|
||||||
|
Loading…
Reference in New Issue
Block a user