diff --git a/plugins/relay.py b/plugins/relay.py index 48f6eeb..df56dc6 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -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):