mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-23 19:19:31 +01:00
networks: show an error instead of silently failing if the command is empty
This commit is contained in:
parent
0749a42ef6
commit
ad4fe1924b
@ -68,6 +68,10 @@ def remote(irc, source, args):
|
||||
args = remote_parser.parse_args(args)
|
||||
netname = args.network
|
||||
|
||||
if not args.command:
|
||||
irc.error("No command specified!")
|
||||
return
|
||||
|
||||
# XXX: things like 'remote network1 remote network2 echo hi' will crash PyLink if the source network is network1...
|
||||
global REMOTE_IN_USE
|
||||
if REMOTE_IN_USE.is_set():
|
||||
|
Loading…
Reference in New Issue
Block a user