]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/configscript.cpp
Added a TODO list to the cvs repository
[irc/gameservirc.git] / gameserv / configscript.cpp
index 2f9313b097433efb52a142b2b530d07b21e49a0c..965e0dd9ffa7744593a1d74789e35a62c1278f77 100644 (file)
@@ -1,8 +1,9 @@
 #include <fstream>
 #include <iostream>
 
-using std::cerr;
 using std::cout;
+using std::cin;
+using std::endl;
 using std::ofstream;
 
 char menu();
@@ -14,7 +15,7 @@ int main()
     outfile.open("options.h");
     if (outfile.fail())
     {
-       cerr << "Error opening options.h" << endl;
+       cout << "Error opening options.h" << endl;
        return 1;
     }
     char c = 0;
@@ -32,9 +33,9 @@ int main()
                outfile << "#define BAHAMUT" << endl;
                break;
            default:
-               break;
+           continue;
        }
-    }while (c != 'Q' && c != 'q' && (int(c) < 48) && (int(c) > 57));
+    }while (c == 'Q' || c == 'q' || (int(c) < 48) || (int(c) > 57));
 
     outfile.close();
 return 0;