mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
[Bug Fix] Fix #set motd Crash (#4495)
This commit is contained in:
parent
7eaee2649e
commit
1fb7a860a1
@ -17,7 +17,7 @@ void SetMOTD(Client *c, const Seperator *sep)
|
||||
|
||||
auto m = (ServerMotd_Struct *) pack->pBuffer;
|
||||
strn0cpy(m->myname, c->GetName(), sizeof(m->myname));
|
||||
strn0cpy(m->motd, message.c_str(), sizeof(m->motd));
|
||||
strn0cpy(m->motd, !message.empty() ? message.c_str() : "", sizeof(m->motd));
|
||||
|
||||
worldserver.SendPacket(pack);
|
||||
safe_delete(pack);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user