mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-25 04:02:45 +01:00
relay: don't error if irc.pseudoclient hasn't been initialized yet
This commit is contained in:
parent
c59997827f
commit
4c83bfc3ef
@ -411,7 +411,7 @@ def initializeChannel(irc, channel):
|
||||
# Send our users and channel modes to the other nets
|
||||
log.debug('(%s) relay.initializeChannel: joining our (%s) users: %s', irc.name, remotenet, irc.channels[channel].users)
|
||||
relayJoins(irc, channel, irc.channels[channel].users, irc.channels[channel].ts)
|
||||
if irc.pseudoclient.uid not in irc.channels[channel].users:
|
||||
if irc.pseudoclient and irc.pseudoclient.uid not in irc.channels[channel].users:
|
||||
irc.proto.join(irc.pseudoclient.uid, channel)
|
||||
|
||||
def removeChannel(irc, channel):
|
||||
|
Loading…
Reference in New Issue
Block a user