mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-28 05:29:25 +01:00
relay: only join the main pseudoclient once per channel
This commit is contained in:
parent
7b444a72d8
commit
86d3cd3295
@ -363,7 +363,8 @@ 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)
|
||||||
irc.proto.joinClient(irc.pseudoclient.uid, channel)
|
if irc.pseudoclient.uid not in irc.channels[channel].users:
|
||||||
|
irc.proto.joinClient(irc.pseudoclient.uid, channel)
|
||||||
|
|
||||||
def removeChannel(irc, channel):
|
def removeChannel(irc, channel):
|
||||||
"""Destroys a relay channel by parting all of its users."""
|
"""Destroys a relay channel by parting all of its users."""
|
||||||
|
Loading…
Reference in New Issue
Block a user