Support hashtags at the end of CTCP /me messages. - annna - Annna the nice frie… | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 6f5aa0d426672592d52aad4ee5d333b5b7ee9c0c | |
parent 68d81cf5e567d2b0e2f8d0a06ef1e4a7b925a7ad | |
Author: Annna Robert-Houdin <[email protected]> | |
Date: Sat, 6 Feb 2021 18:33:57 +0100 | |
Support hashtags at the end of CTCP /me messages. | |
Diffstat: | |
M annna-start-services | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/annna-start-services b/annna-start-services | |
@@ -692,7 +692,7 @@ annna_common() { | |
printf '%s' "$text" | awk -v taglimit="$printnhashtags" ' | |
$0 ~ /#/ && $0 !~ /#nospoil/ { | |
for (i = 1; i <= NF; i++) | |
- if (match($i, /#[^ '"'"',?!$]*/)) | |
+ if (match($i, /#[^ '"'"',?!$\001]*/)) | |
tags[j++] = substr($i, RSTART, RLENGTH) | |
} | |
END { |