commit 47870714b382634e1208245466d4fc810f1c4d9d
parent be2c8fa8e08b8b8be90225b78f30943e1f438ed3
Author: Cem Keylan <cem@ckyln.com>
Date: Wed, 10 Jun 2020 11:48:40 +0300
yaic: nick length option
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/yaic b/yaic
@@ -38,6 +38,7 @@ gethelp() {
":c|:chan [channel] Changes the channel to the given channel" \
":h|:help Prints this help information" \
":hist Changes the history size" \
+ ":l [length] Change the limit for nick space" \
":m Marks the current position" \
":n [note] Adds a note to the current position" \
":s Toggles server notifications" \
@@ -257,6 +258,7 @@ main() {
:q) break ;;
:t) toggle NOTEXT ; [ "$NOTEXT" ] && stty -echo || stty echo ; continue ;;
":n "*) printf '%s <NOTE> %s\n' "$(date +%s)" "${msg#:n }" >> "$outfile" ; continue ;;
+ ":l "*) l="${msg#:l* }" CHAN="${c:-.}"; break ;;
:m) mark; continue ;;
:x) mark; break ;;
:s) toggle NOSERVER ; CHAN="${c:-.}" ; break ;;