yaic

yet another ii client
git clone git://git.ckyln.com/~cem/yaic.git
Log | Files | Refs | README | LICENSE

commit 1461764b291cdf2ad2f105353a95bbdbdf274844
parent b2246e19572f347b14709d4b28768fc586fdfb13
Author: Cem Keylan <cem@ckyln.com>
Date:   Fri,  8 May 2020 00:06:03 +0300

yaic: explicitly show marks

Diffstat:
Myaic | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/yaic b/yaic @@ -25,7 +25,7 @@ usage() { printf '%s\n' "usage: ${0##*/} [options]" "" \ } # Function for bookmarking a location in the chat. -mark() { printf '%s -!- -----------------------------------------------------------------------\n' \ +mark() { printf '%s --- ---------------------------------------------------\n' \ "$(date +%s)" >> "$outfile" ;} gethelp() { @@ -169,10 +169,10 @@ main() { # are in -!- format. If we are not dealing with them, then # it is a server message (not a server notification). We # need to seperate them in a hacky way. - case "$auth" in \<*\>|-!-) ;; *) msg="$auth $msg" auth="$ss" ; esac + case "$auth" in \<*\>|-!-|---) ;; *) msg="$auth $msg" auth="$ss" ; esac # Don't print server messages if NOSERVER is set. - case "$auth" in \<*\>);; *) [ "$NOSERVER" ] && continue ; esac + case "$auth" in \<*\>|---);; *) [ "$NOSERVER" ] && continue ; esac # Remove the <*> from nicks. auth="${auth%>}"; auth="${auth#<}" @@ -184,6 +184,7 @@ main() { "$n") printf '%s \033[1;33m%-10.*s \033[m' "$cleardate" "$l" "$auth" ;; "NOTE")printf '%s \033[1;31m%-10.*s \033[m' "$cleardate" "$l" "$auth" ;; "-!-") printf '\033[37m%s %-10.*s ' "$cleardate" "$l" "$auth"; ;; + "---") printf '\033[37m%s %-10.*s ' "$cleardate" "$l" "$auth"; ;; "$ss") printf '%s %-10.*s ' "$cleardate" "$l" "$auth" ;; *) printf '%s \033[1;36m%-10.*s \033[m' "$cleardate" "$l" "$auth" highlight=1