commit ed4cb003a1a09e0bc590c8a84100843b6d98e1ec
parent 027a6ee6a60039b4cb5ec664352334702edcb3d1
Author: sin <sin@2f30.org>
Date: Tue, 15 Apr 2014 09:27:14 +0100
Allow user to specify the port for the irc serer
Diffstat:
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/config b/config
@@ -1,4 +1,4 @@
nick="your_nickname"
fullname="your_fullname"
-hosts="irc.freenode.net"
+hosts="irc.freenode.net:6667"
channels="irc.freenode.net:#2f30 irc.freenode.net:#ninja-turtles"
diff --git a/connectserver b/connectserver
@@ -14,8 +14,9 @@ fi
. ./config
-host="$1"
-tmux new-window "ii -i irc -s $host -n $nick -f $fullname"
+host=$(echo $1 | awk -F: '{print $1}')
+port=$(echo $1 | awk -F: '{print $2}')
+tmux new-window "ii -i irc -s $host -p $port -n $nick -f $fullname"
tmux rename-window "ii@$host"
./waitfile "irc/$host/out"
tmux new-window "tail -f irc/$host/out | ./highlight"
diff --git a/join b/join
@@ -14,7 +14,7 @@ fi
. ./config
-host="$1"
+host=$(echo $1 | awk -F: '{print $1}')
shift
for c in $*; do
echo "/join $c" > "irc/$host/in"