Removed requiring the server be on to list the whitelist or blacklist.

This commit is contained in:
Marcus Whybrow 2012-05-31 05:44:08 +01:00
parent 24b5a9644b
commit 8c63597af5

8
msm
View File

@ -1735,7 +1735,6 @@ main() {
fi
;;
list)
if server_is_running $id; then
local players=$(cat ${server_whitelist[$id]})
if [ -z "$players" ]; then
@ -1743,9 +1742,6 @@ main() {
else
echo "$players"
fi
else
echo "Server \"${server_name[$id]}\" is not running."
fi
;;
*)
echo "Invalid command."
@ -1833,7 +1829,6 @@ main() {
esac
;;
list)
if server_is_running $id; then
local players=$(cat ${server_banned_players[$id]})
local ips=$(cat ${server_banned_ips[$id]})
@ -1855,9 +1850,6 @@ main() {
done
fi
fi
else
echo "Server \"${server_name[$id]}\" is not running."
fi
;;
*)
echo "Invalid command."