diff --git a/src/sbbs3/newuser.cpp b/src/sbbs3/newuser.cpp
index df664fe4b3a60ce2acbcb60123cc732ec0b1ae52..46c62c76d06108a8dd19d93f1a7cb75ec2e33fa7 100644
--- a/src/sbbs3/newuser.cpp
+++ b/src/sbbs3/newuser.cpp
@@ -236,7 +236,7 @@ BOOL sbbs_t::newuser()
 			bputs(text[EnterYourCityState]);
 			if(getstr(useron.location,LEN_LOCATION,kmode) < 1)
 				continue;
-			if((cfg.uq&UQ_NOCOMMAS) && strchr(useron.location,',') == NULL) {
+			if(!(cfg.uq&UQ_NOCOMMAS) && strchr(useron.location,',') == NULL) {
 				bputs(text[CommaInLocationRequired]);
 				useron.location[0]=0;
 			} else