From 29e111bd9921c3730c751a059e449af765d551a4 Mon Sep 17 00:00:00 2001 From: "shackspace e.V" Date: Fri, 7 May 2010 04:03:59 +0200 Subject: added module send_to_channel --- modules/send_to_channel | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 modules/send_to_channel (limited to 'modules/send_to_channel') diff --git a/modules/send_to_channel b/modules/send_to_channel new file mode 100755 index 00000000..4a0470af --- /dev/null +++ b/modules/send_to_channel @@ -0,0 +1,17 @@ +#! /bin/sh + +case "$1" in + (--help) : ;; + (*) + cd /tmp/noise + channel="$1" + shift + for client in * ; do + . $client/environment + if test "$channel" = "$chat_channel" && test "$default_command" = chat ; then + echo "/echo $*" > $client/linefeed + fi + unset chat_channel + + done +esac -- cgit v1.2.3