From c07cfb13dfeedf67e8ddf86a62d4e929027b01ec Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 25 Jul 2015 16:56:20 -0700 Subject: [PATCH] relay: fix checks of DELINK must having a network parameter on a relay's home network --- plugins/relay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/relay.py b/plugins/relay.py index 8201048..5928424 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -841,7 +841,7 @@ def delink(irc, source, args): entry = findRelay((irc.name, channel)) if entry: if entry[0] == irc.name: # We own this channel. - if remotenet is None: + if not remotenet: utils.msg(irc, source, "Error: you must select a network to delink, or use the 'destroy' command no remove this relay entirely.") return else: