From ce3671a3207c72ac0cfcb345516a7fc28f8ea831 Mon Sep 17 00:00:00 2001 From: syb0rg Date: Wed, 23 Apr 2014 19:10:53 -0500 Subject: [PATCH] Remove test conditional that will always evaluate to false. --- src/user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/user.c b/src/user.c index f5ad924..da589fe 100644 --- a/src/user.c +++ b/src/user.c @@ -192,7 +192,7 @@ user_set_conn_type(int userid, enum connection c) if (userid < 0 || userid >= usercount) return; - if (c < 0 || c >= CONN_MAX) + if (c >= CONN_MAX) return; users[userid].conn = c;