RE: If statements and editing a script
quote: Originally posted by vanillaflavoured
code: function OnEvent_ChatWndSendMessage(pChatWnd, Message){
[...]
}
shortened:
code: function OnEvent_ChatWndSendMessage(ChatWnd, Message){
if(/[a-z\d]$/i.test(Message)) Message += ".";
return Message.charAt(0).toUpperCase() + Message.substr(1);
}
[quote]
Ultimatess6: What a noob mod
|