Skip to content

Commit

Permalink
iii: make it easier to exclude nicks from notification
Browse files Browse the repository at this point in the history
  • Loading branch information
c00kiemon5ter committed Mar 27, 2013
1 parent 3aad771 commit 549a0ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iii.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ do
nick="${nick#<}" nick="${nick%>}"

# do not notify of server messages
[ "$nick" != '-!-' ] && tput bel
case "$nick" in -!-) ;; *) tput bel ;; esac

# prettify
if [ "$p" -ne 0 ]
Expand Down
2 changes: 1 addition & 1 deletion notifiii.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ inotifywait -m --exclude "/in$" --format "%w %f" -e modify -r "$i" | \
nickname="$(awk '{ n=$3 } END { print n }' "$p$f")"
nickname="${nickname#<}"
nickname="${nickname%>}"
[ "$nickname" = '-!-' ] && continue
case "$nickname" in -!-) continue ;; esac

# break path down # p=/ircdir/server/channel/
p="${p#$i}" # p=/server/channel/
Expand Down

0 comments on commit 549a0ce

Please sign in to comment.