mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 01:09:22 +01:00
relay: fix checks of DELINK must having a network parameter on a relay's home network
This commit is contained in:
parent
3804e5e4f8
commit
c07cfb13df
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user