js code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
Message = Message.split(".");
for(var i in Message){
Message[i] = Message[i].replace(/(^\s+)/, '');
Message[i] = " " + Message[i].substring(0, 1).toUpperCase() + Message[i].substring(1);
}
return Message.join(".");
}
Probably not the fastest or best way to do it, but I couldn't find a way to do it with pure regex