summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/server/sv_client.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/sv_client.c b/src/server/sv_client.c
index 4be1ec10..4fa0b24f 100644
--- a/src/server/sv_client.c
+++ b/src/server/sv_client.c
@@ -1537,10 +1537,10 @@ void SV_UserVoip( client_t *cl, msg_t *msg ) {
continue; // not addressed to this player.
// this is not really the best way to do this
- else if (Info_ValueForKey(svs.clients[sender].userinfo,
- "cg_voipTeamOnly") &&
- Info_ValueForKey(svs.clients[sender].userinfo, "t") !=
- Info_ValueForKey(svs.clients[i].userinfo, "t"))
+ else if (atoi(Info_ValueForKey(svs.clients[sender].userinfo,
+ "cg_voipTeamOnly")) &&
+ atoi(Info_ValueForKey(svs.clients[sender].userinfo, "t")) !=
+ atoi(Info_ValueForKey(svs.clients[i].userinfo, "t")))
continue;
// Transmit this packet to the client.