mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-25 04:02:45 +01:00
relay.handle_topic: don't fail if we're bursting and no old topic exists
This commit is contained in:
parent
4a4c9395d6
commit
1e6c5a231e
@ -707,7 +707,7 @@ utils.add_hook(handle_mode, 'MODE')
|
||||
|
||||
def handle_topic(irc, numeric, command, args):
|
||||
channel = args['channel']
|
||||
oldtopic = args['oldtopic']
|
||||
oldtopic = args.get('oldtopic')
|
||||
topic = args['topic']
|
||||
if checkClaim(irc, channel, numeric):
|
||||
for name, remoteirc in world.networkobjects.items():
|
||||
@ -725,7 +725,7 @@ def handle_topic(irc, numeric, command, args):
|
||||
else:
|
||||
rsid = getRemoteSid(remoteirc, irc)
|
||||
remoteirc.proto.topicServer(rsid, remotechan, topic)
|
||||
else: # Topic change blocked by claim.
|
||||
elif oldtopic: # Topic change blocked by claim.
|
||||
irc.proto.topicClient(irc.pseudoclient.uid, channel, oldtopic)
|
||||
|
||||
utils.add_hook(handle_topic, 'TOPIC')
|
||||
|
Loading…
Reference in New Issue
Block a user