aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV.Krishn <vkrishn4@gmail.com>2019-02-13 17:27:29 +0530
committerV.Krishn <vkrishn4@gmail.com>2019-02-13 17:27:29 +0530
commit44cd426a149ca34efdeed317609cea811059e37c (patch)
tree5c886634eadeb52fa452b4c5441441c7b732d8f0
parent70710dd1c2fccd80b8c3fc8842c200a2ce702351 (diff)
downloadscripts-44cd426a149ca34efdeed317609cea811059e37c.tar.bz2
handle populous chatty channelv0.03
-rw-r--r--alpine/irc/log/get-irclog.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/alpine/irc/log/get-irclog.sh b/alpine/irc/log/get-irclog.sh
index 5f7aa32..5114e9c 100644
--- a/alpine/irc/log/get-irclog.sh
+++ b/alpine/irc/log/get-irclog.sh
@@ -138,6 +138,10 @@ al_irclog2html() {
sed -E -i -e "s|([0-9]) (__[0-9])|\1</span>${_colorstr}\2|" \
${_tmpf}
+ # handle populous chatty channel
+ if [ $num -gt 120 ]; then SVGColors="${SVGColors} ${SVGColors}"; fi
+ if [ $num -gt 240 ]; then SVGColors="${SVGColors} ${SVGColors}"; fi
+
num=0
for color in ${SVGColors}; do
str="style=__${num}"