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.
This commit is contained in:
parent
17ad9fc5f2
commit
aa5861d10b
5 changed files with 44 additions and 28 deletions
|
@ -177,6 +177,7 @@ extern void agecontact(struct natstr *np);
|
|||
extern int influx(struct natstr *np);
|
||||
|
||||
extern struct natstr *nat_reset(struct natstr *, enum nat_status, coord, coord);
|
||||
extern int check_nat_name(char *cname);
|
||||
|
||||
extern int grant_btus(struct natstr *, int );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue