diff options
author | V.Krishn <vkrishn4@gmail.com> | 2019-02-13 17:27:29 +0530 |
---|---|---|
committer | V.Krishn <vkrishn4@gmail.com> | 2019-02-13 17:27:29 +0530 |
commit | 44cd426a149ca34efdeed317609cea811059e37c (patch) | |
tree | 5c886634eadeb52fa452b4c5441441c7b732d8f0 | |
parent | 70710dd1c2fccd80b8c3fc8842c200a2ce702351 (diff) | |
download | scripts-44cd426a149ca34efdeed317609cea811059e37c.tar.bz2 |
handle populous chatty channelv0.03
-rw-r--r-- | alpine/irc/log/get-irclog.sh | 4 |
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}" |