From f06c19d559b1dd80cc0f4adf39a78257ecf2219e Mon Sep 17 00:00:00 2001 From: "shackspace e.V" Date: Fri, 7 May 2010 04:02:27 +0200 Subject: split nick and names from chat --- modules/nick | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 modules/nick (limited to 'modules/nick') diff --git a/modules/nick b/modules/nick new file mode 100755 index 00000000..b60a7433 --- /dev/null +++ b/modules/nick @@ -0,0 +1,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 -- cgit v1.2.3