3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-24 03:29:28 +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)
with db_lock:
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
claimed = db[relay]["claim"]
try: