Various cygwin fixes and europa plugin fix

This commit is contained in:
Dan Mashal
2013-02-07 23:36:40 -08:00
parent 87b806a563
commit 580a613555
5 changed files with 20 additions and 9 deletions

View File

@@ -357,7 +357,7 @@ int Europa_Init(IrcCommandDll **intp, Function_ptr *global_table) {
put_it("** Europa v%s connecting to database backend...", MOD_VERSION);
/* connect to the database server */
if(!(mysql_connect(&mysql, DBHOST, DBUSER, DBPASSWD))) {
if(!(mysql_real_connect(&mysql, DBHOST, DBUSER, DBPASSWD, NULL, 0, NULL, 0))) {
put_it("** Server refused login/password.");
return 0;
}