]> git.pond.sub.org Git - empserver/commit
Add standard checks to the assigning of a country name
authorRon Koenderink <rkoenderink@yahoo.ca>
Tue, 6 Jan 2009 23:22:26 +0000 (17:22 -0600)
committerRon Koenderink <rkoenderink@yahoo.ca>
Tue, 6 Jan 2009 23:22:26 +0000 (17:22 -0600)
commitaa5861d10b4250424d69a9e9d2decce7960f83ad
treebd77a67c623f76864ed0a7d75e2c01b58e9cf908
parent17ad9fc5f2766a200cb8157a1d9972130e84e2f0
Add standard checks to the assigning of a country name

Add check to ensure a country by that name does not exist.
Ensure the length is not too long.  Note this is a change
behaviour for edit and change commands which used to silently
truncate long names.  Enforce that a country name can not have
control characters in it.  Ensure that a country name is not
blank or just spaces.
include/nat.h
src/lib/commands/add.c
src/lib/commands/chan.c
src/lib/commands/edit.c
src/lib/subs/natsub.c