3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 09:19:23 +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:
James Lu 2015-08-12 07:03:49 -07:00
parent 3ee10a5d1e
commit 27edc81894

View File

@ -849,7 +849,10 @@ def delink(irc, source, args):
if entry:
if entry[0] == irc.name: # We own this channel.
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
else:
for link in db[entry]['links'].copy():