yaic

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

commit 1aa290976ba107dc6c6d0da4b9bd7f26c4d41062
parent 1461764b291cdf2ad2f105353a95bbdbdf274844
Author: Cem Keylan <cem@ckyln.com>
Date:   Fri,  8 May 2020 01:10:00 +0300

yaic: use nick limit on both printf values

Diffstat:
Myaic | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/yaic b/yaic @@ -181,12 +181,12 @@ main() { # Other nicknames are printed in blue. # Server messages are printed grey to be not distracting. case "$auth" in - "$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" + "$n") printf '%s \033[1;33m%-*.*s \033[m' "$cleardate" "$l" "$l" "$auth" ;; + "NOTE")printf '%s \033[1;31m%-*.*s \033[m' "$cleardate" "$l" "$l" "$auth" ;; + "-!-") printf '\033[37m%s %-*.*s ' "$cleardate" "$l" "$l" "$auth"; ;; + "---") printf '\033[37m%s %-*.*s ' "$cleardate" "$l" "$l" "$auth"; ;; + "$ss") printf '%s %-*.*s ' "$cleardate" "$l" "$l" "$auth" ;; + *) printf '%s \033[1;36m%-*.*s \033[m' "$cleardate" "$l" "$l" "$auth" highlight=1 ;; esac