mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-25 12:12:53 +01:00
relay: less ambiguous error if a relay channel doesn't exist on the caller network
(cherry picked from commit 0b0efbaf9f
)
This commit is contained in:
parent
4577bde05c
commit
46b18512cf
@ -2016,7 +2016,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:
|
||||||
|
Loading…
Reference in New Issue
Block a user