add ban reason support to the ban list

This commit is contained in:
Gunter Labes 2008-04-25 22:38:31 +00:00
parent e935c2d351
commit 82cc3608c9

View file

@ -69,7 +69,7 @@ do
./mp-lobby-logger.pl -j -p $PORT -l $SERVERBASE/currentlobby.log >> $SERVERBASE/logs/lobby-chat.log 2>&1 &
cd $SERVERBASE/build/
fi
for ip in $(cat $SERVERBASE/banlist 2> /dev/null); do $HOME/bin/send_server_command $SERVER ban $ip; done
cat $SERVERBASE/banlist 2> /dev/null | while read -r ip reason; do $HOME/bin/send_server_command $SERVER ban "$ip $reason"; done
# wait for the server to terminate
wait $PID
# need to use the recorded path since the build/ symlink might have changed