do not pass args directly to the mysql query
authorpk910 <philipp@zoelle1.de>
Thu, 1 Sep 2011 12:57:46 +0000 (14:57 +0200)
committerpk910 <philipp@zoelle1.de>
Thu, 1 Sep 2011 12:57:46 +0000 (14:57 +0200)
cmd_neonserv_set.c

index 0c93b559a11f423da07c4374ec29249e8acd42c8..432b3bb5623b49481fdd05d4173fcced0a16e91b 100644 (file)
@@ -232,6 +232,8 @@ static void neonserv_cmd_set_setting(struct ClientSocket *client, struct UserNod
                 reply(getTextBot(), user, "NS_SET_BADLEVEL");
                 return;
             }
+            sprintf(nameBuf, "%d", caccess);
+            args = nameBuf;
         }
         if(valid & NS_VALID_OPTIONS) {
             int options = atoi((char *) channel_settings[setting].parameter);