summaryrefslogtreecommitdiffstats
path: root/noise/modules/send_to_channel
blob: 4a0470af6c91d9f40a7fca9ebe928bfdfd6229c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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