add /about and update version string
This commit is contained in:
parent
82960d0729
commit
cfc75798e7
@ -188,6 +188,7 @@ class AOClient : public QObject {
|
|||||||
void cmdDefault(int argc, QStringList argv);
|
void cmdDefault(int argc, QStringList argv);
|
||||||
void cmdHelp(int argc, QStringList argv);
|
void cmdHelp(int argc, QStringList argv);
|
||||||
void cmdMOTD(int argc, QStringList argv);
|
void cmdMOTD(int argc, QStringList argv);
|
||||||
|
void cmdAbout(int argc, QStringList argv);
|
||||||
// Authentication
|
// Authentication
|
||||||
void cmdLogin(int argc, QStringList argv);
|
void cmdLogin(int argc, QStringList argv);
|
||||||
void cmdChangeAuth(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}},
|
{"unban", {ACLFlags.value("BAN"), 1, &AOClient::cmdUnBan}},
|
||||||
{"removeuser", {ACLFlags.value("MODIFY_USERS"), 1, &AOClient::cmdRemoveUser}},
|
{"removeuser", {ACLFlags.value("MODIFY_USERS"), 1, &AOClient::cmdRemoveUser}},
|
||||||
{"subtheme", {ACLFlags.value("CM"), 1, &AOClient::cmdSubTheme}},
|
{"subtheme", {ACLFlags.value("CM"), 1, &AOClient::cmdSubTheme}},
|
||||||
|
{"about", {ACLFlags.value("NONE"), 0, &AOClient::cmdAbout}}
|
||||||
};
|
};
|
||||||
|
|
||||||
QString partial_packet;
|
QString partial_packet;
|
||||||
|
@ -1025,6 +1025,11 @@ void AOClient::cmdSubTheme(int argc, QStringList argv)
|
|||||||
sendServerMessageArea("Subtheme was set to " + subtheme);
|
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 AOClient::buildAreaList(int area_idx)
|
||||||
{
|
{
|
||||||
QStringList entries;
|
QStringList entries;
|
||||||
|
@ -36,7 +36,7 @@ int main(int argc, char* argv[])
|
|||||||
{
|
{
|
||||||
QCoreApplication app(argc, argv);
|
QCoreApplication app(argc, argv);
|
||||||
QCoreApplication::setApplicationName("akashi");
|
QCoreApplication::setApplicationName("akashi");
|
||||||
QCoreApplication::setApplicationVersion("1.0.0-alpha");
|
QCoreApplication::setApplicationVersion("apricot r1");
|
||||||
std::atexit(cleanup);
|
std::atexit(cleanup);
|
||||||
|
|
||||||
ConfigManager config_manager;
|
ConfigManager config_manager;
|
||||||
|
Loading…
Reference in New Issue
Block a user