From 2dd865a6462d8e9a33f7529fda4dc87227d67256 Mon Sep 17 00:00:00 2001 From: d3v11 Date: Sat, 6 Oct 2012 22:06:10 +0000 Subject: [scripts/add_udpmsg4_chat] [security] .gitignore seckey (thanks Ivo) --- scripts/add_udpmsg4_chat | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/add_udpmsg4_chat b/scripts/add_udpmsg4_chat index 6600fad..594e20f 100755 --- a/scripts/add_udpmsg4_chat +++ b/scripts/add_udpmsg4_chat @@ -1,11 +1,12 @@ #!/bin/sh -if [ -z $3 ]; then - echo "Usage: $0 " >&2; exit 255 +if [ -z $5 ]; then + echo "Usage: $0 " >&2; exit 255 fi chat="$1" owner="$2" pubkey="$3" seckey="$4" +topic="$5" if [ "$(echo -n "${chat/chat\//}" | tr -d 'A-Za-z0-9_-' | wc -c | tr -d ' \t')" != 0 ]; then echo "udpmsg4 chats do not allow funny chars." >&2; exit 255 @@ -29,3 +30,5 @@ mkdir -p $fullchat/@ || exit 1 echo -n "$owner" >"$fullchat/@/owner" echo -n "$pubkey" >"$fullchat/@/pubkey" echo -n "$seckey" >"$fullchat/@/seckey" +echo -n "$topic" >"$fullchat/@/topic" +echo -n "seckey" >"$fullchat/@/.gitignore" -- cgit v1.2.3