erm, try replacing the first function with this:
code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message) {
var firstChar = Message.charAt(0);
var restOfMessage = Message.substr(1);
if (caps == "on") firstChar = firstChar.toUpperCase();
if (dot == "on" && /[?!:.;,]$/.test(Message) == false) restOfMessage += ".";
return firstChar + restOfMessage;
}