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:
parent
a0d20df899
commit
ed19c2b24a
@ -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')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user