Thread: Disabling MoTD.
View Single Post
  #5  
Old 11-06-2013, 11:08 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,603
Default

Even with this removed it still sends the messages, almost as though it's just bypassing this code for some reason. :|

I found the following in client.cpp, I believe this is where it's actually sent, thus why it's bypassing the other. Possibly, commenting this out will remove the sending of the MoTD. (Lines 826 - 841 in client.cpp)
Code:
outapp = new EQApplicationPacket(OP_MOTD);
char tmp[500] = {0};
if (database.GetVariable("MOTD", tmp, 500)) {
	outapp->size = strlen(tmp)+1;
	outapp->pBuffer = new uchar[outapp->size];
	memset(outapp->pBuffer,0,outapp->size);
	strcpy((char*)outapp->pBuffer, tmp);

} else {
	// Null Message of the Day. :)
	outapp->size = 1;
	outapp->pBuffer = new uchar[outapp->size];
	outapp->pBuffer[0] = 0;
}
QueuePacket(outapp);
safe_delete(outapp);
Reply With Quote