hysteria

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

commit 027a6ee6a60039b4cb5ec664352334702edcb3d1
parent 43d2d4b62e2c585b39d5e4d5864ba6a7f91add08
Author: sin <sin@2f30.org>
Date:   Tue Apr 15 00:18:47 +0100

Specify servers + channels in config

Diffstat:
config | 2++
hysteria | 11+++++++++--
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/config b/config @@ -1,2 +1,4 @@ nick="your_nickname" fullname="your_fullname" +hosts="irc.freenode.net" +channels="irc.freenode.net:#2f30 irc.freenode.net:#ninja-turtles" diff --git a/hysteria b/hysteria @@ -6,5 +6,12 @@ rm -rf irc tmux new-session -s hysteria -d ./eventmonitor tmux rename-window "event-monitor" -./connectserver "irc.freenode.net" -./join "irc.freenode.net" "#2f30" "#ninja-turtles" +for h in $hosts; do + ./connectserver "$h" +done + +for c in $channels; do + host=$(echo $c | awk -F: '{print $1}') + channel=$(echo $c | awk -F: '{print $2}') + ./join $host $channel +done