3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-30 14:49:28 +01:00

relay: clearer error message when DESTROY'ing a channel you didn't create

This commit is contained in:
James Lu 2016-06-19 12:32:27 -07:00
parent d3e207d653
commit 87cbbc9c57

View File

@ -1395,7 +1395,8 @@ def destroy(irc, source, args):
channel, irc.getHostmask(source))
irc.reply('Done.')
else:
irc.reply('Error: No such relay %r exists.' % channel)
irc.reply("Error: No such channel %r exists. If you're trying to delink a channel from "
"another network, use the DESTROY command." % channel)
return
@utils.add_cmd