3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-24 11:39:25 +01:00

relay: fix checks of DELINK must having a network parameter on a relay's home network

This commit is contained in:
James Lu 2015-07-25 16:56:20 -07:00
parent 3804e5e4f8
commit c07cfb13df

View File

@ -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: