mirror of
https://github.com/MinecraftServerControl/mscs.git
synced 2024-11-15 23:08:18 -07:00
Remove odd characters from the two MOTD regex.
This commit is contained in:
parent
6fbc33d66a
commit
c37f414da2
@ -432,9 +432,9 @@ getMOTD() {
|
||||
MOTD_SUMMARY=""
|
||||
WORLD_MOTD="$WORLDS_LOCATION/$1.motd"
|
||||
if [ -e $WORLD_MOTD ]; then
|
||||
MOTD_SUMMARY=$(head -n 1 $WORLD_MOTD | $PERL -ne '$_ =~ s/§[0-9a-fA-F]//g; print;')
|
||||
MOTD_SUMMARY=$(head -n 1 $WORLD_MOTD | $PERL -ne '$_ =~ s/§[0-9a-fA-F]//g; print;')
|
||||
elif [ -e $MOTD ]; then
|
||||
MOTD_SUMMARY=$(head -n 1 $MOTD | $PERL -ne '$_ =~ s/§[0-9a-fA-F]//g; print;')
|
||||
MOTD_SUMMARY=$(head -n 1 $MOTD | $PERL -ne '$_ =~ s/§[0-9a-fA-F]//g; print;')
|
||||
fi
|
||||
echo $MOTD_SUMMARY
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user