]> jfr.im git - irc/quakenet/qwebirc.git/blob - run.sh
Modify standard getActiveWindow function so that it redirects messages to the correct...
[irc/quakenet/qwebirc.git] / run.sh
1 #!/bin/sh
2 export PYTHONPATH=.:${PYTHONPATH}
3
4 if [ -f "defargs.conf" ]; then
5 ARGS=$(cat defargs.conf)
6 else
7 ARGS=
8 fi
9
10 PREARGS=
11 if [ "$1" = "-n" ]; then
12 PREARGS=$1
13 shift
14 fi
15
16 if [ "$1" != "" ]; then
17 if [ "$ARGS" != "" ]; then
18 echo "Not using default arguments: $ARGS"
19 fi
20 ARGS=$*
21 fi
22
23 twistd $PREARGS qwebirc -n $ARGS