mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +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))
|
entry = findRelay((irc.name, channel))
|
||||||
if entry:
|
if entry:
|
||||||
if entry[0] == irc.name: # We own this channel.
|
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.")
|
utils.msg(irc, source, "Error: you must select a network to delink, or use the 'destroy' command no remove this relay entirely.")
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user