summaryrefslogtreecommitdiffstats
path: root/modules/nick
diff options
context:
space:
mode:
authorshackspace e.V <shack@shack.(none)>2010-05-07 04:02:27 +0200
committershackspace e.V <shack@shack.(none)>2010-05-07 04:02:27 +0200
commitf06c19d559b1dd80cc0f4adf39a78257ecf2219e (patch)
tree00cba1c8a599126076eb947a123694947d82d66b /modules/nick
parent47361ddde830e7ce4653d33d380e4d66bed9c1b4 (diff)
split nick and names from chat
Diffstat (limited to 'modules/nick')
-rwxr-xr-xmodules/nick10
1 files changed, 10 insertions, 0 deletions
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