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

relay: re-add 'CLAIM #channel -'

This was mistakenly removed in d51c399351 due to a merge conflict, oops...
This commit is contained in:
James Lu 2017-07-02 22:06:50 -07:00
parent 51d8d3b3b8
commit 62669c085d

View File

@ -2079,6 +2079,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