mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-02 23:54:08 +01:00
relay: fix TOPIC relaying when the source and target channels have different names
This commit is contained in:
parent
c99a6a7b9d
commit
3b83c3d567
@ -233,11 +233,11 @@ def initializeChannel(irc, channel):
|
|||||||
# Join their (remote) users and set their modes.
|
# Join their (remote) users and set their modes.
|
||||||
relayJoins(remoteirc, remotechan, rc.users,
|
relayJoins(remoteirc, remotechan, rc.users,
|
||||||
rc.ts, rc.modes)
|
rc.ts, rc.modes)
|
||||||
relayModes(irc, remoteirc, irc.sid, channel)
|
# relayModes(irc, remoteirc, irc.sid, channel)
|
||||||
topic = remoteirc.channels[relay[1]].topic
|
topic = remoteirc.channels[remotechan].topic
|
||||||
# Only update the topic if it's different from what we already have,
|
# Only update the topic if it's different from what we already have,
|
||||||
# and topic bursting is complete.
|
# and topic bursting is complete.
|
||||||
if remoteirc.channels[channel].topicset and topic != irc.channels[channel].topic:
|
if remoteirc.channels[remotechan].topicset and topic != irc.channels[channel].topic:
|
||||||
irc.proto.topicServer(irc, irc.sid, channel, topic)
|
irc.proto.topicServer(irc, irc.sid, channel, topic)
|
||||||
|
|
||||||
log.debug('(%s) initializeChannel: joining our users: %s', irc.name, c.users)
|
log.debug('(%s) initializeChannel: joining our users: %s', irc.name, c.users)
|
||||||
|
Loading…
Reference in New Issue
Block a user