mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 21:19:31 +01:00
relay: fix error message when DELINK is called on a relay's origin network without arguments
tl;dr I'm a terrible writer
This commit is contained in:
parent
3ee10a5d1e
commit
27edc81894
@ -849,7 +849,10 @@ def delink(irc, source, args):
|
|||||||
if entry:
|
if entry:
|
||||||
if entry[0] == irc.name: # We own this channel.
|
if entry[0] == irc.name: # We own this channel.
|
||||||
if not remotenet:
|
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 to remove "
|
||||||
|
"this relay entirely (it was created on the current "
|
||||||
|
"network).")
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
for link in db[entry]['links'].copy():
|
for link in db[entry]['links'].copy():
|
||||||
|
Loading…
Reference in New Issue
Block a user