diff --git a/include/aoclient.h b/include/aoclient.h index 64edf16..bade278 100644 --- a/include/aoclient.h +++ b/include/aoclient.h @@ -188,6 +188,7 @@ class AOClient : public QObject { void cmdDefault(int argc, QStringList argv); void cmdHelp(int argc, QStringList argv); void cmdMOTD(int argc, QStringList argv); + void cmdAbout(int argc, QStringList argv); // Authentication void cmdLogin(int argc, QStringList argv); void cmdChangeAuth(int argc, QStringList argv); @@ -324,6 +325,7 @@ class AOClient : public QObject { {"unban", {ACLFlags.value("BAN"), 1, &AOClient::cmdUnBan}}, {"removeuser", {ACLFlags.value("MODIFY_USERS"), 1, &AOClient::cmdRemoveUser}}, {"subtheme", {ACLFlags.value("CM"), 1, &AOClient::cmdSubTheme}}, + {"about", {ACLFlags.value("NONE"), 0, &AOClient::cmdAbout}} }; QString partial_packet; diff --git a/src/commands.cpp b/src/commands.cpp index cca5b40..b387674 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -1025,6 +1025,11 @@ void AOClient::cmdSubTheme(int argc, QStringList argv) sendServerMessageArea("Subtheme was set to " + subtheme); } +void AOClient::cmdAbout(int argc, QStringList argv) +{ + sendPacket("CT", {"The akashi dev team", "Thank you for using akashi! Made with love by scatterflower, with help from in1tiate and Salanto. akashi " + QCoreApplication::applicationVersion()}); +} + QStringList AOClient::buildAreaList(int area_idx) { QStringList entries; diff --git a/src/main.cpp b/src/main.cpp index da19865..d6d2582 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -36,7 +36,7 @@ int main(int argc, char* argv[]) { QCoreApplication app(argc, argv); QCoreApplication::setApplicationName("akashi"); - QCoreApplication::setApplicationVersion("1.0.0-alpha"); + QCoreApplication::setApplicationVersion("apricot r1"); std::atexit(cleanup); ConfigManager config_manager;