mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-23 18:54:05 +01:00
relay: re-add 'CLAIM #channel -'
This was mistakenly removed ind51c399351
due to a merge conflict, oops... (cherry picked from commit62669c085d
)
This commit is contained in:
parent
2c32269b7f
commit
990a928602
@ -2080,6 +2080,9 @@ def claim(irc, source, args):
|
||||
except IndexError: # No networks given.
|
||||
irc.reply('Channel \x02%s\x02 is claimed by: %s' %
|
||||
(channel, ', '.join(claimed) or '\x1D(none)\x1D'))
|
||||
else:
|
||||
if nets == '-' or not nets:
|
||||
claimed = set()
|
||||
else:
|
||||
claimed = set(nets.split(','))
|
||||
db[relay]["claim"] = claimed
|
||||
|
Loading…
Reference in New Issue
Block a user