3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

relay: less ambiguous error if a relay channel doesn't exist on the caller network

This commit is contained in:
James Lu 2017-02-05 21:46:36 -08:00
parent 6e94375ed9
commit 0b0efbaf9f

View File

@ -2041,7 +2041,8 @@ def claim(irc, source, args):
relay = (irc.name, channel) relay = (irc.name, channel)
with db_lock: with db_lock:
if relay not in db: if relay not in db:
irc.error('No such relay %r exists.' % channel) irc.error('No relay %r exists on this network (this command must be run on the '
'network this channel was created on).' % channel)
return return
claimed = db[relay]["claim"] claimed = db[relay]["claim"]
try: try: