3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

relay: block topic changes from the main SID, not the PyLink client

This commit is contained in:
James Lu 2016-05-22 19:12:11 -07:00
parent a0d20df899
commit ed19c2b24a

View File

@ -1169,7 +1169,7 @@ def handle_topic(irc, numeric, command, args):
rsid = getRemoteSid(remoteirc, irc)
remoteirc.proto.topicBurst(rsid, remotechan, topic)
elif oldtopic: # Topic change blocked by claim.
irc.proto.topic(irc.pseudoclient.uid, channel, oldtopic)
irc.proto.topicBurst(irc.sid, channel, oldtopic)
utils.add_hook(handle_topic, 'TOPIC')