\r
log = logging.getLogger(__name__)\r
\r
+def is_supported_gametype(gametype):\r
+ """Whether a gametype is supported or not"""\r
+ flg_supported = True\r
+\r
+ if gametype == 'cts' or gametype == 'ca' or gametype == 'lms':\r
+ flg_supported = False\r
+\r
+ return flg_supported\r
+\r
\r
def is_verified_request(request):\r
(idfp, status) = d0_blind_id_verify(\r
log.debug("Required game meta fields (T, G, M, or S) missing. "\\r
"Can't continue.")\r
raise Exception("Required game meta fields (T, G, M, or S) missing.")\r
- \r
+ \r
+ if not is_supported_gametype(game_meta['G']):\r
+ raise Exception("Gametype not supported.")\r
+ \r
if not has_minimum_real_players(players):\r
raise Exception("The number of real players is below the minimum. "\\r
"Stats will be ignored.")\r