From f4f5b3b7aff2ac45ee035f54d6e8899ff963d133 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 9 Dec 2013 20:07:19 +0100 Subject: noise: RIP --- .graveyard/noise/modules/query | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 .graveyard/noise/modules/query (limited to '.graveyard/noise/modules/query') diff --git a/.graveyard/noise/modules/query b/.graveyard/noise/modules/query new file mode 100755 index 00000000..ceeff8a5 --- /dev/null +++ b/.graveyard/noise/modules/query @@ -0,0 +1,23 @@ +#! /bin/sh + +case "$1" in + (--help) echo send a message to a specific user ;; + (*) + cd /tmp/noise + . $NOISE_pid/environment + nick="${chat_nick-$NOISE_pid}" + target="$1" + shift + for client in * ; do + . $client/environment + if test "$target" = "${chat_nick-$client}" ; then + echo "/echo <-- $nick: $*" > $client/linefeed + echo "--> $target: $*" + exit + fi + unset chat_channel + + done + + echo "$nick not found" +esac -- cgit v1.2.3