diff options
-rw-r--r-- | db/udpmsg4_chat/anonet/@/owner | 1 | ||||
-rw-r--r-- | db/udpmsg4_chat/anonet/@/pubkey | 1 | ||||
-rw-r--r-- | db/udpmsg4_chat/anonet/@/seckey | 1 | ||||
-rw-r--r-- | db/udpmsg4_chat/freeanons/@/owner | 1 | ||||
-rw-r--r-- | db/udpmsg4_chat/freeanons/@/pubkey | 1 | ||||
-rw-r--r-- | db/udpmsg4_chat/freeanons/@/seckey | 1 | ||||
-rwxr-xr-x | scripts/add_udpmsg4_chat | 7 |
7 files changed, 5 insertions, 8 deletions
diff --git a/db/udpmsg4_chat/anonet/@/owner b/db/udpmsg4_chat/anonet/@/owner deleted file mode 100644 index d6d8c78..0000000 --- a/db/udpmsg4_chat/anonet/@/owner +++ /dev/null @@ -1 +0,0 @@ -legion
\ No newline at end of file diff --git a/db/udpmsg4_chat/anonet/@/pubkey b/db/udpmsg4_chat/anonet/@/pubkey deleted file mode 100644 index da16ce5..0000000 --- a/db/udpmsg4_chat/anonet/@/pubkey +++ /dev/null @@ -1 +0,0 @@ -f5fc06fc146eb7ebabe2dbfa7711346703e976ba021062b4e976f9007f0dda4f
\ No newline at end of file diff --git a/db/udpmsg4_chat/anonet/@/seckey b/db/udpmsg4_chat/anonet/@/seckey deleted file mode 100644 index d96d72f..0000000 --- a/db/udpmsg4_chat/anonet/@/seckey +++ /dev/null @@ -1 +0,0 @@ -f0b05bc6e944a3e9f5315df5a8b57706b25d8c02e4d86f8558664d015fb3f784
\ No newline at end of file diff --git a/db/udpmsg4_chat/freeanons/@/owner b/db/udpmsg4_chat/freeanons/@/owner deleted file mode 100644 index d6d8c78..0000000 --- a/db/udpmsg4_chat/freeanons/@/owner +++ /dev/null @@ -1 +0,0 @@ -legion
\ No newline at end of file diff --git a/db/udpmsg4_chat/freeanons/@/pubkey b/db/udpmsg4_chat/freeanons/@/pubkey deleted file mode 100644 index da16ce5..0000000 --- a/db/udpmsg4_chat/freeanons/@/pubkey +++ /dev/null @@ -1 +0,0 @@ -f5fc06fc146eb7ebabe2dbfa7711346703e976ba021062b4e976f9007f0dda4f
\ No newline at end of file diff --git a/db/udpmsg4_chat/freeanons/@/seckey b/db/udpmsg4_chat/freeanons/@/seckey deleted file mode 100644 index d96d72f..0000000 --- a/db/udpmsg4_chat/freeanons/@/seckey +++ /dev/null @@ -1 +0,0 @@ -f0b05bc6e944a3e9f5315df5a8b57706b25d8c02e4d86f8558664d015fb3f784
\ No newline at end of file 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 <chat> <owner> <pubkey> <seckey>" >&2; exit 255 +if [ -z $5 ]; then + echo "Usage: $0 <chat> <owner> <pubkey> <seckey> <topic>" >&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" |