From ed03666a2c5f1b3d142d4fa60d5e42a05a04b5d3 Mon Sep 17 00:00:00 2001 From: Salanto Date: Fri, 12 Mar 2021 22:14:45 +0100 Subject: [PATCH] Change permission, remove unused permission --- include/aoclient.h | 1 - src/commands.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/aoclient.h b/include/aoclient.h index 75eaa39..6fbb981 100644 --- a/include/aoclient.h +++ b/include/aoclient.h @@ -79,7 +79,6 @@ class AOClient : public QObject { {"MOTD", 1ULL << 7}, {"ANNOUNCE", 1ULL << 8}, {"MODCHAT", 1ULL << 9}, - {"GM", 1ULL << 10}, {"SUPER", ~0ULL} }; diff --git a/src/commands.cpp b/src/commands.cpp index 8f7ad14..2cd968f 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -892,7 +892,7 @@ void AOClient::cmdM(int argc, QStringList argv) void AOClient::cmdGM(int argc, QStringList argv) { - if (checkAuth(ACLFlags.value("GM"))) { + if (checkAuth(ACLFlags.value("MODCHAT"))) { QString sender_name = ooc_name; QString sender_area = server->area_names.value(current_area); QString sender_message = argv.join(" ");