mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 11:39:25 +01:00
relay: only join the main pseudoclient once per channel
This commit is contained in:
parent
7b444a72d8
commit
86d3cd3295
@ -363,6 +363,7 @@ def initializeChannel(irc, channel):
|
|||||||
# Send our users and channel modes to the other nets
|
# Send our users and channel modes to the other nets
|
||||||
log.debug('(%s) initializeChannel: joining our (%s) users: %s', irc.name, remotenet, irc.channels[channel].users)
|
log.debug('(%s) initializeChannel: joining our (%s) users: %s', irc.name, remotenet, irc.channels[channel].users)
|
||||||
relayJoins(irc, channel, irc.channels[channel].users, irc.channels[channel].ts)
|
relayJoins(irc, channel, irc.channels[channel].users, irc.channels[channel].ts)
|
||||||
|
if irc.pseudoclient.uid not in irc.channels[channel].users:
|
||||||
irc.proto.joinClient(irc.pseudoclient.uid, channel)
|
irc.proto.joinClient(irc.pseudoclient.uid, channel)
|
||||||
|
|
||||||
def removeChannel(irc, channel):
|
def removeChannel(irc, channel):
|
||||||
|
Loading…
Reference in New Issue
Block a user