chiark / gitweb /
support .noircnotify/--force
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Sat, 9 May 2009 07:23:56 +0000 (07:23 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Sat, 9 May 2009 07:23:56 +0000 (07:23 +0000)
ircnotify

index c1684b4..54b8bde 100755 (executable)
--- a/ircnotify
+++ b/ircnotify
@@ -1,3 +1,6 @@
 #! /bin/sh
+if [ -f ~/.noircnotify ] && [ "$1" != --force ]; then
+       exit 0
+fi
 export IRCSERVER=excalibur.esper.net
 xargs -n 1 ircwhois < ~/.ircnotify