diff options
author | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2002-08-19 19:07:08 +0000 |
---|---|---|
committer | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2002-08-19 19:07:08 +0000 |
commit | e44938759e45f0c46eb8e314d7ead9921fe5e7d9 (patch) | |
tree | 510a55256439993cfdd01dfa39e0bf6e10796698 /lib/make/new_thorn.pl | |
parent | f5444c27fa3abc5fd94a17ffbd64df7f776ba1ec (diff) |
Document and check maximum length of a thorn name
Fixes Cactus/882
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2970 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/new_thorn.pl')
-rwxr-xr-x | lib/make/new_thorn.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/make/new_thorn.pl b/lib/make/new_thorn.pl index 41042c70..05ec24b7 100755 --- a/lib/make/new_thorn.pl +++ b/lib/make/new_thorn.pl @@ -285,6 +285,12 @@ sub TestName $valid = 0; } + if ($thorn && length($name)>27) + { + print STDERR "Thorn names must be 27 characters or less!\n\n"; + $valid = 0; + } + if ($thorn && $name eq "doc") { print STDERR "Thorn name doc is not allowed!\n\n"; |