diff options
Diffstat (limited to 'code/server')
-rw-r--r-- | code/server/sv_client.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/code/server/sv_client.c b/code/server/sv_client.c index 6f932d1..2528e64 100644 --- a/code/server/sv_client.c +++ b/code/server/sv_client.c @@ -1371,8 +1371,10 @@ void SV_UserinfoChanged( client_t *cl ) { } #if USE_VOIP + // in the future, (val) will be a protocol version string, so only + // accept explicitly 1, not generally non-zero. val = Info_ValueForKey (cl->userinfo, "voip"); - cl->hasVoip = (strlen(val) && atoi(val)) ? qtrue : qfalse; + cl->hasVoip = (atoi(val) == 1) ? qtrue : qfalse; #endif // TTimo |