summaryrefslogtreecommitdiffstats
path: root/noise/modules/nick
blob: 5ed1e9d93e5510c247f7605ffcaedd2dd8f508da (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 $chat_channel $nick is now known as $1 > $NOISE_linefeed
    echo /set chat_nick $1 >$NOISE_linefeed;;
esac