Fixed: use row[1] instead of row[0] in monitorDatabase()

This commit is contained in:
Massimiliano Pinto 2013-10-11 09:02:49 +02:00
parent cd507f1461
commit 1f0e8d5c56

View File

@ -309,7 +309,7 @@ char *uname = defaultUser, *passwd = defaultPasswd;
num_fields = mysql_num_fields(result);
while ((row = mysql_fetch_row(result)))
{
if (strncasecmp(row[0], "JOINED", 3) == 0)
if (strncasecmp(row[1], "JOINED", 3) == 0)
isjoined = 1;
}
mysql_free_result(result);