summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLedmitz <smoothshifter@tuta.io>2023-01-06 07:54:40 -0400
committerLedmitz <smoothshifter@tuta.io>2023-01-06 07:54:40 -0400
commit52a88caf6a6a84bbc58a4929817d835c49885eb7 (patch)
treeab241cd629ddb3a7bbedeba90a5d1888a003c742
parent830ae2e72a5f0deab0ff6cb7009cad6106f1c9ba (diff)
downloadtmw-info-online_ordering.tar.gz
tmw-info-online_ordering.tar.bz2
tmw-info-online_ordering.tar.xz
tmw-info-online_ordering.zip
Made order of online list alphbetical, while ignoring the case.online_ordering
-rw-r--r--README.md3
-rwxr-xr-xtmw-info2
2 files changed, 3 insertions, 2 deletions
diff --git a/README.md b/README.md
index f6e96ad..c33818a 100644
--- a/README.md
+++ b/README.md
@@ -69,8 +69,9 @@ Use gm-show to quickly display the last 10 gm commands run. Updates automaticall
```
## Changelog
+* 2023-01-06 - Fixed the ordering of the online list to ignore case, so it shows players in a more organized fashion
* 2023-01-04 - Fixed mob-search do display proper drops. This was due to a server DB update which added new columns
-* 2022-12-13 - Changed check for zenity from dpkg -l to find in /bin or /usr/bin.
+* 2022-12-13 - Changed check for zenity from dpkg -l to find in /bin or /usr/bin
- Added general check and warning for those without curl or wget
- Used find for removing .tmp files instead of specifying locations in the exit trap
- Edited structure, comments and readme
diff --git a/tmw-info b/tmw-info
index 90cbd18..d9d73d8 100755
--- a/tmw-info
+++ b/tmw-info
@@ -80,7 +80,7 @@ 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' | grep -v 'Online Players' | sed 1d | LC_ALL=C sort
+ curl -s 'https://server.themanaworld.org/' | sed 's/<\/*[^>]*>//g' | sed -r '/^\s*$/d' | sed -r '/^\s*Name\s*$/d' | grep --line-buffered -v 'Online Players' | sed 1d | sort -n
elif [ "$1" == "gm-update" ]; then
mkdir -p "$TMW_GM_LOGS"
#Get list of files from server to read the byte counts from