summaryrefslogtreecommitdiff
path: root/tmw-info
diff options
context:
space:
mode:
Diffstat (limited to 'tmw-info')
-rwxr-xr-xtmw-info3
1 files changed, 2 insertions, 1 deletions
diff --git a/tmw-info b/tmw-info
index e66e49f..e37a654 100755
--- a/tmw-info
+++ b/tmw-info
@@ -86,7 +86,8 @@ if [ "$1" == "help" ] || [ "$1" == "--help" ] || [ "$1" == "-h" ]; then
elif [ "$1" == "news" ]; then
curl -s 'https://themanaworld.github.io/tmwa-server-data/news.html' | sed 's/<\/*[^>]*>//g' | less
elif [ "$1" == "online" ]; then
- curl -s 'https://server.themanaworld.org/' | sed 's/<\/*[^>]*>//g' | sed -r '/^\s*$/d' | sed -r '/^\s*Name\s*$/d' | sed 1d
+ #curl -s 'https://server.themanaworld.org/' | sed 's/<\/*[^>]*>//g' | sed -r '/^\s*$/d' | sed -r '/^\s*Name\s*$/d' | sed 1d
+ curl -s 'https://server.themanaworld.org/' | sed 's/<\/*[^>]*>//g' | sed -r '/^\s*$/d' | sed -r '/^\s*Name\s*$/d' | grep -v 'Online Players' | sed 1d | LC_ALL=C sort
elif [ "$1" == "gm-update" ]; then
mkdir -p "$TMW_GM_LOGS"
# Get list of files from server to read the byte counts from