summaryrefslogtreecommitdiffstats
path: root/modules/nick
blob: b60a7433052fdb65b92cb45fd66a3263f80b8879 (plain)
1
2
3
4
5
6
7
8
9
10
#! /bin/sh

case "$1" in
  (--help) echo send text to everyone with @@ prepended ;;
  (*)
    . /tmp/noise/$NOISE_pid/environment
    nick="${chat_nick-$NOISE_pid}"
    echo /send_to_channel $nick is now known as $2 > $NOISE_linefeed
    echo /set chat_nick $2 >$NOISE_linefeed;;
esac