# HG changeset patch # User d3v11 # Date 1349561170 0 # Node ID bace90f3f318d75c8644cec8b618c47cde701ce7 # Parent 1219afbcefbd9284cf9f51de04714e2fb537889e [scripts/add_udpmsg4_chat] [security] .gitignore seckey (thanks Ivo) diff -r 1219afbcefbd -r bace90f3f318 db/udpmsg4_chat/anonet/@/owner --- a/db/udpmsg4_chat/anonet/@/owner Mon Oct 01 00:23:17 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -legion \ No newline at end of file diff -r 1219afbcefbd -r bace90f3f318 db/udpmsg4_chat/anonet/@/pubkey --- a/db/udpmsg4_chat/anonet/@/pubkey Mon Oct 01 00:23:17 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -f5fc06fc146eb7ebabe2dbfa7711346703e976ba021062b4e976f9007f0dda4f \ No newline at end of file diff -r 1219afbcefbd -r bace90f3f318 db/udpmsg4_chat/anonet/@/seckey --- a/db/udpmsg4_chat/anonet/@/seckey Mon Oct 01 00:23:17 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -f0b05bc6e944a3e9f5315df5a8b57706b25d8c02e4d86f8558664d015fb3f784 \ No newline at end of file diff -r 1219afbcefbd -r bace90f3f318 db/udpmsg4_chat/freeanons/@/owner --- a/db/udpmsg4_chat/freeanons/@/owner Mon Oct 01 00:23:17 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -legion \ No newline at end of file diff -r 1219afbcefbd -r bace90f3f318 db/udpmsg4_chat/freeanons/@/pubkey --- a/db/udpmsg4_chat/freeanons/@/pubkey Mon Oct 01 00:23:17 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -f5fc06fc146eb7ebabe2dbfa7711346703e976ba021062b4e976f9007f0dda4f \ No newline at end of file diff -r 1219afbcefbd -r bace90f3f318 db/udpmsg4_chat/freeanons/@/seckey --- a/db/udpmsg4_chat/freeanons/@/seckey Mon Oct 01 00:23:17 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -f0b05bc6e944a3e9f5315df5a8b57706b25d8c02e4d86f8558664d015fb3f784 \ No newline at end of file diff -r 1219afbcefbd -r bace90f3f318 scripts/add_udpmsg4_chat --- a/scripts/add_udpmsg4_chat Mon Oct 01 00:23:17 2012 +0000 +++ b/scripts/add_udpmsg4_chat Sat Oct 06 22:06:10 2012 +0000 @@ -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 @@ 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"