change global access of all users in the ranking when using cmd_setrank access *
authorpk910 <philipp@zoelle1.de>
Mon, 3 Oct 2011 12:56:33 +0000 (14:56 +0200)
committerpk910 <philipp@zoelle1.de>
Mon, 3 Oct 2011 12:56:33 +0000 (14:56 +0200)
src/cmd_neonserv_setrank.c

index 7c866612c03c84d53298e2fbb08d1bb8d8be9f47..e56feb94586155152b8a9dbf3f9401d10814942f 100644 (file)
@@ -76,6 +76,7 @@ static void neonserv_cmd_setrank_access(struct UserNode *user, int rank_id, char
             reply(getTextBot(), user, "NS_INVALID_ACCESS", new_access);
             return;
         }
+        printf_mysql_query("UPDATE `users` SET `user_access` = '%d' WHERE `user_rank` = '%d'", new_access, rank_id);
         printf_mysql_query("UPDATE `support_ranks` SET `rank_access` = '%d' WHERE `rank_id` = '%d'", new_access, rank_id);
         current = value;
     }