fixed cmd_trim access range check
authorpk910 <philipp@zoelle1.de>
Sat, 17 Sep 2011 19:34:34 +0000 (21:34 +0200)
committerpk910 <philipp@zoelle1.de>
Sat, 17 Sep 2011 19:34:34 +0000 (21:34 +0200)
cmd_neonserv_trim.c

index 345a9e23e8e701b0494d24af76f06ba183b3d10e..749b7530b7a9097af8c1a23970aaaafe04903584 100644 (file)
@@ -46,7 +46,7 @@ static CMD_BIND(neonserv_cmd_trim) {
             seperator++;
             min_access = atoi(argv[0]);
             max_access = atoi(seperator);
-            if(max_access > min_access) {
+            if(max_access < min_access) {
                 reply(getTextBot(), user, "NS_INVALID_ACCESS_RANGE", min_access, max_access);
                 return;
             }