All you'd need to do is make like a void in the database
like
Code:
public static void ChatLogs(string From, string To, string Message)
{
Implement it in your Ini Database maybe in a folder like /ChatLogs/...
IniFile Ini = new IniFile(DatabaseFolder + "\\ChatLogs\\"+From+"\\"+ Include like the Date...+".ini");
Ini.Write( blah, From, "blah");
Ini.Write( blah, To, "Blah");
Ini.Write( blah, Message, "blah");
}
and then, in PacketProcessor or whatever it's called, for the Message Packet, you add in the ChatLogs void, like "
Database.ChatLogs(From, To, Msg);" or if you want only GMs/PMs to be recorded, you'd add in an if statement, like
Code:
if (PlayerFlag >= 2)
{
Database.ChatLogs(From, To, Msg);
}
edit: This isn't source-specific...just to show an example of how simple this is to implement/create.