fixed last commit
[NeonServV5.git] / cmd_neonserv_giveowner.c
index 5cf31852d7c2a888b9bb735c9024a2fdef713224..0187d1dca887deadc881c056f1493b37626efd9a 100644 (file)
@@ -25,8 +25,7 @@ static CMD_BIND(neonserv_cmd_giveowner) {
     }
     MYSQL_RES *res;
     MYSQL_ROW row;
-    int userid;
-    printf_mysql_query("SELECT `channel_lastgiveowner` FROM `channels` WHERE `channel_id` = '%s'", chan->channel_id);
+    printf_mysql_query("SELECT `channel_lastgiveowner` FROM `channels` WHERE `channel_id` = '%d'", chan->channel_id);
     res = mysql_use();
     if ((row = mysql_fetch_row(res)) == NULL) return;
     if(strcmp(row[0], "0") && (atoi(row[0]) + GIVEOWNER_TIMEOUT) > time(0)) {