Move cmdAfk to messaging category
cmdAfk is a command that changes the clients status to AFK. As such, it belongs under the messaging category, which includes commands that handle a clients self-management.
This commit is contained in:
parent
ea50100acf
commit
67f7acc34a
@ -1438,6 +1438,15 @@ class AOClient : public QObject {
|
|||||||
*/
|
*/
|
||||||
void cmdUnShake(int argc, QStringList argv);
|
void cmdUnShake(int argc, QStringList argv);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Toggles whether this client is considered AFK.
|
||||||
|
*
|
||||||
|
* @details No arguments.
|
||||||
|
*
|
||||||
|
* @iscommand
|
||||||
|
*/
|
||||||
|
void cmdAfk(int argc, QStringList argv);
|
||||||
|
|
||||||
///@}
|
///@}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1587,16 +1596,6 @@ class AOClient : public QObject {
|
|||||||
*/
|
*/
|
||||||
void cmdCurrentMusic(int argc, QStringList argv);
|
void cmdCurrentMusic(int argc, QStringList argv);
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Toggles whether this client is considered AFK.
|
|
||||||
*
|
|
||||||
* @details No arguments.
|
|
||||||
*
|
|
||||||
* @iscommand
|
|
||||||
*/
|
|
||||||
void cmdAfk(int argc, QStringList argv);
|
|
||||||
|
|
||||||
///@}
|
///@}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -283,9 +283,3 @@ void AOClient::cmdJudgeLog(int argc, QStringList argv)
|
|||||||
sendServerMessage(filteredmessage);
|
sendServerMessage(filteredmessage);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void AOClient::cmdAfk(int argc, QStringList argv)
|
|
||||||
{
|
|
||||||
is_afk = true;
|
|
||||||
sendServerMessage("You are now AFK.");
|
|
||||||
}
|
|
||||||
|
@ -274,3 +274,9 @@ void AOClient::cmdUnShake(int argc, QStringList argv)
|
|||||||
}
|
}
|
||||||
target->is_shaken = false;
|
target->is_shaken = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AOClient::cmdAfk(int argc, QStringList argv)
|
||||||
|
{
|
||||||
|
is_afk = true;
|
||||||
|
sendServerMessage("You are now AFK.");
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user