mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Added "whitelist add" command.
Also fixed an error in the last commit.
This commit is contained in:
parent
0eea7b16e0
commit
01739cc5d4
12
msm
12
msm
@ -1586,11 +1586,21 @@ main() {
|
||||
fi
|
||||
;;
|
||||
add)
|
||||
if [ -z "$4" ]; then
|
||||
echo "Invalid command."
|
||||
else
|
||||
if server_is_running $id; then
|
||||
server_eval $id "whitelist add $4"
|
||||
echo "Added \"$4\" to the whitelist."
|
||||
else
|
||||
echo "Server \"${server_name[$id]}\" is not running."
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
remove)
|
||||
;;
|
||||
list)
|
||||
if server_is_running $1; then
|
||||
if server_is_running $id; then
|
||||
local line=$(server_eval_and_get_line $id "whitelist list" "${server_confirm_whitelist_list[$id]}")
|
||||
|
||||
# Cuts the start off the line, and the last three (invisible)
|
||||
|
Loading…
Reference in New Issue
Block a user