From 04fa9b3513d909cf71554b01c6c7bd883e964cf4 Mon Sep 17 00:00:00 2001 From: "shackspace e.V" Date: Fri, 7 May 2010 04:42:48 +0200 Subject: added query command to whisper users --- modules/query | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 modules/query (limited to 'modules') diff --git a/modules/query b/modules/query new file mode 100755 index 00000000..dd6f415a --- /dev/null +++ b/modules/query @@ -0,0 +1,20 @@ +#! /bin/sh + +case "$1" in + (--help) echo send a message to a specific user ;; + (*) + cd /tmp/noise + nick="$1" + shift + for client in * ; do + . $client/environment + if test "$nick" = "${chat_nick-$client}" ; then + echo "/echo $*" > $client/linefeed + exit + fi + unset chat_channel + + done + + echo "$nick not found" +esac -- cgit v1.2.3