From bf76cae5f0f931141e1fd1a299e7e5f34c12f991 Mon Sep 17 00:00:00 2001 From: Marcus Whybrow Date: Tue, 29 May 2012 05:41:15 +0100 Subject: [PATCH] Added "whitelist remove" command. --- msm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/msm b/msm index 59bd303..e99ab12 100755 --- a/msm +++ b/msm @@ -1598,6 +1598,16 @@ main() { fi ;; remove) + if [ -z "$4" ]; then + echo "Invalid command." + else + if server_is_running $id; then + server_eval $id "whitelist remove $4" + echo "Removed \"$4\" from the whitelist." + else + echo "Server \"${server_name[$id]}\" is not running." + fi + fi ;; list) if server_is_running $id; then