aboutsummaryrefslogtreecommitdiff
path: root/alpine
diff options
context:
space:
mode:
authorV.Krishn <vkrishn4@gmail.com>2019-03-14 09:22:47 +0530
committerV.Krishn <vkrishn4@gmail.com>2019-03-14 09:22:47 +0530
commit07d2a8c3711135d32f8e31707cd23cc160c61504 (patch)
tree1291689090fc83bc0b6a3a1835b6a2a48da35d77 /alpine
parent033108402ba7d54d9918d899246d3274691c38b7 (diff)
downloadscripts-07d2a8c3711135d32f8e31707cd23cc160c61504.tar.bz2
fix extra quirks codes
Diffstat (limited to 'alpine')
-rw-r--r--alpine/irc/log/get-irclog.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/alpine/irc/log/get-irclog.sh b/alpine/irc/log/get-irclog.sh
index 0cc5538..908347c 100644
--- a/alpine/irc/log/get-irclog.sh
+++ b/alpine/irc/log/get-irclog.sh
@@ -104,6 +104,8 @@ al_irclog2html() {
lnames=$(awk '{print $3}' ${_CURRLF} | sort | uniq )
for name in ${lnames}; do
_name=${name}
+ name=$(echo $name | sed 's|\[|\\[|g')
+ name=$(echo $name | sed 's|\]|\\]|g')
# sed -E -i -e "s|${name}|__${num}${_name}|" ${_tmpf}
sed -E -i "s|^(2[0-9\-]+{9}) ([0-9\:]+{8}) ${name}|\1 \2 __${num}${_name}|" \
${_tmpf}
@@ -118,10 +120,6 @@ al_irclog2html() {
-e 's|gt\; |gt;</span><span>|' \
-e 's|$|</span></li>|' \
${_tmpf}
- sed -E -i -e "s|([0-9]) &lt;(\w)|\1 __120\&lt;\2|" \
- ${_tmpf} #handle quirks
- sed -E -i -e "s|([0-9]) &lt;(\[)|\1 __120\&lt;\2|" \
- ${_tmpf} #handle quirks
_colorstr="<span style="
sed -E -i -e "s|([0-9]) (__[0-9])|\1</span>${_colorstr}\2|" \