diff options
author | shackspace e.V <shack@shack.(none)> | 2010-05-07 04:42:48 +0200 |
---|---|---|
committer | shackspace e.V <shack@shack.(none)> | 2010-05-07 04:42:48 +0200 |
commit | 04fa9b3513d909cf71554b01c6c7bd883e964cf4 (patch) | |
tree | 065dcae7fafb0ab06914bdc7e9d79e4148ebe540 | |
parent | 50be3334a221c7e7a1b20eb8f1da481d7e9e9729 (diff) |
added query command to whisper users
-rwxr-xr-x | modules/query | 20 |
1 files changed, 20 insertions, 0 deletions
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 |