added GPL header to all files and added INSTALL AUTHORS COPYING files.
[NeonServV5.git] / src / cmd_neonserv_listrank.c
index b2cf904bd3050ba407cd00e581be245da4d25579..b87f19d7e53f0a2b50e1dd11f07f81ec76439a66 100644 (file)
@@ -1,3 +1,19 @@
+/* cmd_neonserv_listrank.c - NeonServ v5.0
+ * Copyright (C) 2011  Philipp Kreil (pk910)
+ * 
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License 
+ * along with this program. If not, see <http://www.gnu.org/licenses/>. 
+ */
 
 #include "cmd_neonserv.h"
 
@@ -26,6 +42,7 @@ CMD_BIND(neonserv_cmd_listrank) {
         res2 = mysql_use();
         row = mysql_fetch_row(res2);
         content[2] = row[0];
+        table_add(table, content);
     }
     //send the table
     char **table_lines = table_end(table);