diff --git a/konata.sh b/konata.sh index ffdeb37..8470a17 100755 --- a/konata.sh +++ b/konata.sh @@ -25,7 +25,7 @@ fi # Functions for outgoing messages sendmsg(){ # Escape any special characters first, see https://0x0.st/NO7J. - fmt=$(sed 's/[][~!@#$%^&*()-_=+{}\|;:",<.>/?'"'"']/\\&/g' <<< $1 | sed 's/\t//g') + fmt=$(sed 's/[>#+-=|{}.!]/\\&/g' <<< $1 | sed 's/\t//g') sendraw "$fmt" } sendraw(){