using std::cerr;
using std::endl;
-void load_config_file(char *config);
+int load_config_file(char *config);
void unload_config_file();
/* Random Configuration Stuff Goes Here until I code it to load from a .conf file :)*/
delete [] welcomemsg;
}
-void load_config_file(char *config)
+int load_config_file(char *config)
{
char *buf, *directive, *value;
buf = new char[1024];
{
log("Error opening %s", config);
cerr << "Error opening " << config << endl;
- return;
+ return 0;
}
while (infile.getline(buf, 1024, '\n'))
}
delete [] buf;
infile.close();
+return 1;
}