mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 13:16:39 +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
+24
@@ -0,0 +1,24 @@
|
||||
#include "../client.h"
|
||||
#include "../worldserver.h"
|
||||
|
||||
extern WorldServer worldserver;
|
||||
|
||||
void command_setlsinfo(Client *c, const Seperator *sep)
|
||||
{
|
||||
if (sep->argnum != 2) {
|
||||
c->Message(Chat::White, "Format: #setlsinfo email password");
|
||||
}
|
||||
else {
|
||||
auto pack = new ServerPacket(
|
||||
ServerOP_LSAccountUpdate,
|
||||
sizeof(ServerLSAccountUpdate_Struct));
|
||||
ServerLSAccountUpdate_Struct *s = (ServerLSAccountUpdate_Struct *) pack->pBuffer;
|
||||
s->useraccountid = c->LSAccountID();
|
||||
strn0cpy(s->useraccount, c->AccountName(), 30);
|
||||
strn0cpy(s->user_email, sep->arg[1], 100);
|
||||
strn0cpy(s->userpassword, sep->arg[2], 50);
|
||||
worldserver.SendPacket(pack);
|
||||
c->Message(Chat::White, "Login Server update packet sent.");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user