mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-03 13:36:36 +00:00
[GM Commands] Split GM Commands Into Separate Files (#1766)
* Split GM commands into their own files * Code cleanup
This commit is contained in:
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#include "../client.h"
|
||||
|
||||
void command_lastname(Client *c, const Seperator *sep)
|
||||
{
|
||||
Client *t = c;
|
||||
|
||||
if (c->GetTarget() && c->GetTarget()->IsClient()) {
|
||||
t = c->GetTarget()->CastToClient();
|
||||
}
|
||||
LogInfo("#lastname request from [{}] for [{}]", c->GetName(), t->GetName());
|
||||
|
||||
if (strlen(sep->arg[1]) <= 70) {
|
||||
t->ChangeLastName(sep->arg[1]);
|
||||
}
|
||||
else {
|
||||
c->Message(Chat::White, "Usage: #lastname <lastname> where <lastname> is less than 70 chars long");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user