hysteria

ii wrapper script
git clone git://git.2f30.org/hysteria
Log | Files | Refs | README | LICENSE

commit 650e97e3c39b8a82d048f9a1a16bbe1a6d33da23
parent db546d649c361af3197a5f3d9ca485acfd575ad7
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Mon, 19 May 2014 19:29:26 +0200

fix autojoin

because config is an optional argument now, multiple channels can't be
specified anymore for now.

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

Diffstat:
Mautojoin | 12+++++-------
1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/autojoin b/autojoin @@ -7,7 +7,7 @@ else fi if test $# -lt 2; then - echo "usage: $(basename $0) host channel [config]..." 1>&2 + echo "usage: $(basename $0) host channel [config]" 1>&2 exit 1 fi @@ -18,9 +18,7 @@ if [ $? -eq 1 ]; then exit 1 fi -host=$(printf '%s' "$1" | cut -d ':' -f 1) -shift -for c in $*; do - echo "/join $c" > "$ircdir/$host/in" - ./waitfile "$ircdir/$host/$c/out" -done +host="$1" +c="$2" +echo "/join $c" > "$ircdir/$host/in" +./waitfile "$ircdir/$host/$c/out"