quote:
Originally posted by Jexel
hmmm interesting script...perhaps implement a word counter to make its use more practical? I think it was requested before in another thread.
Yeah I'm thinking about the most practical way to implement this. Probably won't start on it until atleast monday when i'm back at work.
Right now I think this is the best way:
code:
function OnSendMessage(Message, Origin, Window)
{
if (words = Message.match(/(^|\s+)(.*?)($|\s+)/igm) != null)
{
totalwords += words.length();
}
}
Simple and effective