summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-08-12 16:40:56 -0700
committerBen Longbons <b.r.longbons@gmail.com>2013-08-12 16:40:56 -0700
commit8824cc2171a022a40aefa2be03d59d8fc073ffa1 (patch)
tree270b71c335a5b5d3bea157fb7b72483388130eaf
parente5c98579d0682b4097d1733fb4b3a9b9e5b5fcb5 (diff)
downloadtmwa-8824cc2171a022a40aefa2be03d59d8fc073ffa1.tar.gz
tmwa-8824cc2171a022a40aefa2be03d59d8fc073ffa1.tar.bz2
tmwa-8824cc2171a022a40aefa2be03d59d8fc073ffa1.tar.xz
tmwa-8824cc2171a022a40aefa2be03d59d8fc073ffa1.zip
Fix validation bug in ladmin account creation
-rw-r--r--src/ladmin/ladmin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ladmin/ladmin.cpp b/src/ladmin/ladmin.cpp
index 9f4691c..1b5d7b7 100644
--- a/src/ladmin/ladmin.cpp
+++ b/src/ladmin/ladmin.cpp
@@ -665,7 +665,7 @@ void addaccount(ZString param, int emailflag)
if (!name.is_print())
return;
- if (XString("MF").contains(sex))
+ if (!XString("MF").contains(sex))
{
PRINTF("Illegal gender [%c]. Please input M or F.\n", sex);
LADMIN_LOG("Illegal gender [%c]. Please input M or F.\n", sex);