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;