From 62669c085dad8b6e9ea057fe2b130535af1b0a52 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 2 Jul 2017 22:06:50 -0700 Subject: [PATCH] relay: re-add 'CLAIM #channel -' This was mistakenly removed in d51c39935118223a3e7087c821af50e52ff152fd due to a merge conflict, oops... --- plugins/relay.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/relay.py b/plugins/relay.py index 3286424..bb2e1ae 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -2080,7 +2080,10 @@ def claim(irc, source, args): irc.reply('Channel \x02%s\x02 is claimed by: %s' % (channel, ', '.join(claimed) or '\x1D(none)\x1D')) else: - claimed = set(nets.split(',')) + if nets == '-' or not nets: + claimed = set() + else: + claimed = set(nets.split(',')) db[relay]["claim"] = claimed irc.reply('CLAIM for channel \x02%s\x02 set to: %s' % (channel, ', '.join(claimed) or '\x1D(none)\x1D'))